Re: AW: New SQL Datatype RECURRINGCHAR - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: AW: New SQL Datatype RECURRINGCHAR
Date
Msg-id Pine.LNX.4.30.0107092339290.677-100000@peter.localdomain
Whole thread Raw
In response to Re: AW: New SQL Datatype RECURRINGCHAR  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane writes:

> SQL92 gives this restriction on WHERE clauses for updatable views:
>
>             d) If the <table expression> immediately contained in QS imme-
>               diately contains a <where clause> WC, then no leaf generally
>               underlying table of QS shall be a generally underlying table
>               of any <query expression> contained in WC.
>
> which conveys nothing to my mind :-(, except that they're restricting
> sub-SELECTs in WHERE somehow.  Can anyone translate that into English?

No table mentioned in the FROM-clause (in PG even implicitly) of the query
expression (or view definition) is allowed to be mentioned in a subquery
in the WHERE clause of the query expression (or view definition).

The phrasing "leaf" and "generally" underlying is only to make this
statement theoretically pure because you can create generally underlying
tables that look different but do the same thing (different join syntax),
whereas a leaf generally underlying table is guaranteed to be a real base
table.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Improving pg_hba.conf
Next
From: Bruce Momjian
Date:
Subject: Re: create user problem