generating a parent/child relationship in a trigger

Поиск
Список
Период
Сортировка
От Mark Harrison
Тема generating a parent/child relationship in a trigger
Дата
Msg-id 425C0AB7.6050905@pixar.com
обсуждение исходный текст
Ответы Re: generating a parent/child relationship in a trigger  (Thomas F.O'Connell <tfo@sitening.com>)
Список pgsql-general
Suppose I'm adding row to a table, and one of the columns is
a pathname.

I would like to generate in a separate table parent/child
relationships based on the path.

For example, adding "/foo/bar/baz" and "/foo/bar/bot" would
generate the following relationships

parent      child
------      -----
/foo        /foo/bar
/foo/bar    /foo/bar/baz
/foo/bar    /foo/bar/bot

Is this a reasonable thing to do in a trigger?  Does anybody
have a pl/sql snippet to do this?

Many TIA,
Mark

--
Mark Harrison
Pixar Animation Studios

В списке pgsql-general по дате отправления:

Предыдущее
От: John DeSoi
Дата:
Сообщение: Re: Encoding Issue with UNICODE
Следующее
От: Bob Henkel
Дата:
Сообщение: Re: Please help to speed up UPDATE statement