Re: Proposal: Commit timestamp
От
Jan Wieck
Тема
Re: Proposal: Commit timestamp
Дата
Msg-id
45BA0064.2050708@Yahoo.com
Ответ на
Re: Proposal: Commit timestamp (Naz Gassiep)
Список
Дерево обсуждения
Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Neil Conway <neilc@samurai.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp "Simon Riggs" <simon@2ndquadrant.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Bruce Momjian <bruce@momjian.us>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Heikki Linnakangas <heikki@enterprisedb.com>
Re: Proposal: Commit timestamp Markus Schiltknecht <markus@bluegap.ch>
Re: Proposal: Commit timestamp Naz Gassiep <naz@mira.net>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Stephen Frost <sfrost@snowman.net>
Re: Proposal: Commit timestamp Andrew Dunstan <andrew@dunslane.net>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Gregory Stark <stark@enterprisedb.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Theo Schlossnagle <jesus@omniti.com>
Re: Proposal: Commit timestamp Jim Nasby <decibel@decibel.org>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Theo Schlossnagle <jesus@omniti.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Theo Schlossnagle <jesus@omniti.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Bruce Momjian <bruce@momjian.us>
Re: Proposal: Commit timestamp José Orlando Pereira <jop@lsd.di.uminho.pt>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp José Orlando Pereira <jop@lsd.di.uminho.pt>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Peter Eisentraut <peter_e@gmx.net>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Theo Schlossnagle <jesus@omniti.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Andrew Sullivan <ajs@crankycanuck.ca>
Re: Proposal: Commit timestamp Theo Schlossnagle <jesus@omniti.com>
Re: Proposal: Commit timestamp Markus Schiltknecht <markus@bluegap.ch>
Re: Proposal: Commit timestamp "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Proposal: Commit timestamp Markus Schiltknecht <markus@bluegap.ch>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Markus Schiltknecht <markus@bluegap.ch>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Markus Schiltknecht <markus@bluegap.ch>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Markus Schiltknecht <markus@bluegap.ch>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Proposal: Commit timestamp Richard Troy <rtroy@ScienceTools.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Bruce Momjian <bruce@momjian.us>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Bruce Momjian <bruce@momjian.us>
Re: Proposal: Commit timestamp "Andrew Hammond" <andrew.george.hammond@gmail.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Bruce Momjian <bruce@momjian.us>
Re: Proposal: Commit timestamp Alvaro Herrera <alvherre@commandprompt.com>
Re: Proposal: Commit timestamp Bruce Momjian <bruce@momjian.us>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Bruce Momjian <bruce@momjian.us>
Re: Proposal: Commit timestamp "Joshua D. Drake" <jd@commandprompt.com>
Re: Proposal: Commit timestamp Bruce Momjian <bruce@momjian.us>
Re: Proposal: Commit timestamp Richard Troy <rtroy@ScienceTools.com>
Re: Proposal: Commit timestamp "J. Andrew Rogers" <jrogers@neopolitan.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Richard Troy <rtroy@ScienceTools.com>
Re: Proposal: Commit timestamp Andrew Dunstan <andrew@dunslane.net>
Re: Proposal: Commit timestamp Richard Troy <rtroy@ScienceTools.com>
Re: Proposal: Commit timestamp Andrew Dunstan <andrew@dunslane.net>
Re: Proposal: Commit timestamp Andrew Dunstan <andrew@dunslane.net>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
Re: Proposal: Commit timestamp Richard Troy <rtroy@ScienceTools.com>
Re: Proposal: Commit timestamp Kris Jurka <books@ejurka.com>
Re: Proposal: Commit timestamp Gregory Stark <stark@enterprisedb.com>
Re: Proposal: Commit timestamp "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Proposal: Commit timestamp Jim Nasby <decibel@decibel.org>
Re: Proposal: Commit timestamp Theo Schlossnagle <jesus@omniti.com>
Re: Proposal: Commit timestamp Richard Troy <rtroy@ScienceTools.com>
Re: Proposal: Commit timestamp Jan Wieck <JanWieck@Yahoo.com>
On 1/26/2007 2:37 AM, Naz Gassiep wrote: > I would be *very* concerned that system time is not a guaranteed > monotonic entity. Surely a counter or other internally managed mechanism > would be a better solution. Such a counter has only "local" relevance. How do you plan to compare the two separate counters on different machines to tell which transaction happened last? Even if the system clock isn't monotonically increasing, the described increment system guarantees the timestamp used to appear so. Granted, this system will not work too well on a platform that doesn't allow to slew the system clock. > > Furthermore, what would be the ramifications of master and slave system > times being out of sync? The origin of a transaction must scan all tuples it updates and make sure that the timestamp it uses for commit appears in the future with respect to them. > > Finally what if system time is rolled forward a few minutes as part of a > correction and there were transactions completed in that time? There is > a change, albeit small, that two transactions will have the same > timestamp. More importantly, this will throw all kinds of issues in when > the slave sees transactions in the future. Even with regular NTP syncs, > drift can cause a clock to be rolled forward a few milliseconds, > possibly resulting in duplicate transaction IDs. > > In summary, I don't think the use of system time has any place in > PostgreSQL's internal consistency mechanisms, it is too unreliable an > environment property. Why can't a counter be used for this instead? This is nothing used for PostgreSQL's consistency. It is a vehicle intended to be used to synchronize the "last update wins" decision process of an asynchronous multimaster system. If not with a timestamp, how would you make sure that the replication processes of two different nodes will come to the same conclusion as to which update was last? Especially considering that the replication might take place hours after the original transaction happened. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #
В списке pgsql-hackers по дате отправления