Search Postgresql Archives

Re: DAGs and recursive queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"paul.dorman" <paul.dorman@xxxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux