Re: Views as FROM subselects - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Views as FROM subselects
Date
Msg-id 14126.976921773@sss.pgh.pa.us
Whole thread Raw
In response to Views as FROM subselects  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom, I see from the CVS logs you say:
>  Subselects in FROM clause, per ISO syntax: FROM (SELECT ...) [AS] alias.
>  (Don't forget that an alias is required.)  Views reimplemented as expanding
>  to subselect-in-FROM.  Grouping, aggregates, DISTINCT in views actually
>  work now (he says optimistically).  No UNION support in subselects/views
>  yet, but I have some ideas about that.  Rule-related permissions checking
>  moved out of rewriter and into executor.
> Does this mean the rewrite system no longer handles views?

Sure it does.  It got a lot simpler though.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Views as FROM subselects
Next
From: Tom Lane
Date:
Subject: Re: CURRENT/OLD keywords still broken