Re: AS OF queries

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: AS OF queries
Дата
Msg-id 20171227032708.GB32234@fetter.org
обсуждение исходный текст
Ответ на Re: AS OF queries  (legrand legrand <legrand_legrand@hotmail.com>)
Список 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 по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: [HACKERS] Runtime Partition Pruning
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] [PATCH] Tap test support for backup with tablespacemapping