From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | legrand legrand <legrand_legrand(at)hotmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: AS OF queries |
Date: | 2017-12-27 03:27:08 |
Message-ID: | 20171227032708.GB32234@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2017-12-27 03:50:01 | Re: [HACKERS] [PATCH] Tap test support for backup with tablespace mapping |
Previous Message | David Rowley | 2017-12-27 03:06:44 | Re: [HACKERS] Runtime Partition Pruning |