Re: AS OF queries - Mailing list pgsql-hackers

From David Fetter
Subject Re: AS OF queries
Date
Msg-id 20171227032708.GB32234@fetter.org
Whole thread Raw
In response to Re: AS OF queries  (legrand legrand <legrand_legrand@hotmail.com>)
List pgsql-hackers
On Tue, Dec 26, 2017 at 03:43:36PM -0700, legrand legrand wrote:
> would actual syntax
> 
> WITH old_foo AS
> (select * from foo as of '<some time>')
> select * from foo except select * from old_foo;
> 
> work in replacement for
> 
> select * from foo except select * from foo as old_foo as of '<some time>';
> 
> ?

If there has to be a WITH, or (roughly) equivalently, a sub-select for
each relation, the queries get very hairy very quickly.  It would
nevertheless be better for the people who need the feature to have it
this way than not to have it at all.

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: [HACKERS] Runtime Partition Pruning
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] [PATCH] Tap test support for backup with tablespacemapping