Proposal of hierarchical queries, a la Oracle - Mailing list pgsql-sql

From Evgen Potemkin
Subject Proposal of hierarchical queries, a la Oracle
Date
Msg-id Pine.LNX.4.33.0211151338530.16806-100000@ns.terminal.ru
Whole thread Raw
Responses Re: Proposal of hierarchical queries, a la Oracle  (Oleg Bartunov <oleg@sai.msu.su>)
Re: Proposal of hierarchical queries, a la Oracle  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
Hi there!

I want to propose the patch for adding the hierarchical queries posibility.
It allows to construct queries a la Oracle for ex:
SELECT a,b FROM t CONNECT BY a PRIOR b START WITH cond;

I've seen this type of queries often made by adding a new type, which stores
position of row in the tree. But sorting such tree are very tricky (i
think).

Patch allows result tree to be sorted, i.e. subnodes of each node will be
sorted by ORDER BY clause.

with regards, evgen




pgsql-sql by date:

Previous
From: "Vaughn Cleminson"
Date:
Subject: Does Postgres replace \\ with \ in an update query
Next
From: teknokrat
Date:
Subject: Updating a table column with ref integrity