Re: DAGs and recursive queries

Поиск
Список
Период
Сортировка
Искать
От
Gregory Stark
Тема
Re: DAGs and recursive queries
Дата
Msg-id
87bqbpbewo.fsf@oxford.xeocode.com
Ответ на
Список
Дерево обсуждения
DAGs and recursive queries "paul.dorman" <paul.dorman@gmail.com>
Re: DAGs and recursive queries Gregory Stark <stark@enterprisedb.com>
Re: DAGs and recursive queries Jeff Davis <pgsql@j-davis.com>
Re: DAGs and recursive queries Gregory Stark <stark@enterprisedb.com>
Re: DAGs and recursive queries "paul.dorman" <paul.dorman@gmail.com>
Re: DAGs and recursive queries Jeff Davis <pgsql@j-davis.com>
Re: DAGs and recursive queries Oleg Bartunov <oleg@sai.msu.su>

"paul.dorman"  writes:

> Hi everyone,
>
> I would like to know the best way to implement a DAG in PostgreSQL. I
> understand there has been some talk of recursive queries, and I'm
> wondering if there has been much progress on this.

The ANSI recursive queries didn't make it into 8.3. I still hope it makes 8.4.

You could check out the tablefunc contrib which includes a function called
connectby() which implements a kind of recursive query.

Alternatively you might look at the ltree contrib module but that doesn't work
the way you describe. It denormalizes the data for very fast but less flexible
operations.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
В списке pgsql-general по дате отправления
От: David Siebert
Дата:
Сообщение: More on migragting the server.
От: Jimmy Choi
Дата:
FAQ