Re: SQL99 Hierarchical queries - Mailing list pgsql-hackers

From Evgen Potemkin
Subject Re: SQL99 Hierarchical queries
Date
Msg-id 44458e320502240611300b4484@mail.gmail.com
Whole thread Raw
In response to Re: SQL99 Hierarchical queries  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
> > I have done initial implementation of SQL99 WITH clause (attached).
> > It's now only for v7.3.4 and haven't a lot of checks and restrictions.
> 
> What kind of restrictions are on it?
Main restriction is that the query inside WITH alias can refer only to
back and to itself.
For example 
WITH a as (...),b as (...)select ...;
a can refer only to itself, b - to a and b.

Its needed to restrict WITH aliased query not to use WITH aliasing
itself, i.e. avoid situation of WITH inside WITH. And make also some
other checks. But this isn't done yet.

Regards, Evgen.


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: SQL99 Hierarchical queries
Next
From: "Magnus Hagander"
Date:
Subject: Re: [pgsql-hackers-win32] win32 performance - fsync question