Re: AS OF queries
От
Konstantin Knizhnik
Тема
Re: AS OF queries
Дата
Msg-id
c4e47930-552c-0748-4f05-8a2d86e9c9c3@postgrespro.ru
Ответ на
Re: AS OF queries (PostgreSQL - Hans-Jürgen Schönig)
Список
Дерево обсуждения
AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Hannu Krosing <hkrosing@gmail.com>
Re: AS OF queries Laurenz Albe <laurenz.albe@cybertec.at>
Re: AS OF queries Tom Lane <tgl@sss.pgh.pa.us>
Re: AS OF queries Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: AS OF queries Tom Lane <tgl@sss.pgh.pa.us>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries David Fetter <david@fetter.org>
Re: AS OF queries Alvaro Hernandez <aht@ongres.com>
Re: AS OF queries Jeff Janes <jeff.janes@gmail.com>
Re: AS OF queries legrand legrand <legrand_legrand@hotmail.com>
Re: AS OF queries David Fetter <david@fetter.org>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: AS OF queries legrand legrand <legrand_legrand@hotmail.com>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries legrand legrand <legrand_legrand@hotmail.com>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries legrand legrand <legrand_legrand@hotmail.com>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Peter van Hardenberg <pvh@pvh.ca>
Re: AS OF queries Pantelis Theodosiou <ypercube@gmail.com>
Re: AS OF queries Magnus Hagander <magnus@hagander.net>
Re: AS OF queries Craig Ringer <craig@2ndquadrant.com>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Laurenz Albe <laurenz.albe@cybertec.at>
Re: AS OF queries David Fetter <david@fetter.org>
Re: AS OF queries Alvaro Hernandez <aht@ongres.com>
Re: AS OF queries Masahiko Sawada <sawada.mshk@gmail.com>
Re: AS OF queries Joe Wildish <joe-postgresql.org@elusive.cx>
Re: AS OF queries PostgreSQL - Hans-Jürgen Schönig<postgres@cybertec.at>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Greg Stark <stark@mit.edu>
Re: AS OF queries Michael Paquier <michael.paquier@gmail.com>
Re: AS OF queries konstantin knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Bruce Momjian <bruce@momjian.us>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Bruce Momjian <bruce@momjian.us>
Re: AS OF queries Craig Ringer <craig@2ndquadrant.com>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: AS OF queries Craig Ringer <craig@2ndquadrant.com>
Re: AS OF queries Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
On 27.12.2017 17:14, PostgreSQL - Hans-Jürgen Schönig wrote: > > On 12/20/2017 01:45 PM, Konstantin Knizhnik wrote: >> I wonder if Postgres community is interested in supporting time travel >> queries in PostgreSQL (something like AS OF queries in Oracle: >> https://docs.oracle.com/cd/B14117_01/appdev.101/b10795/adfns_fl.htm). >> As far as I know something similar is now developed for MariaDB. >> >> It seems to me that it will be not so difficult to implement them in >> Postgres - we already have versions of tuples. >> Looks like we only need to do three things: >> 1. Disable autovacuum (autovacuum = off) >> 2. Enable commit timestamp (track_commit_timestamp = on) >> 3. Add asofTimestamp to snapshot and patch XidInMVCCSnapshot to >> compare commit timestamps when it is specified in snapshot. >> > that sounds really awesome ... i would love to see that. > my question is: while MVCC is fine when a tuple is still there ... > what are you going to do with TRUNCATE and so on? > it is not uncommon that a table is truncated frequently. in this case > MVCC won't help. > what are your thoughts on this ? You should not use drop/truncate if you want to access old versions:) Yes, truncate is much more faster than delete but it is because it operates on file level. I think that it is quite natural limitation. -- Konstantin Knizhnik Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
В списке pgsql-hackers по дате отправления