Re: transction_timestamp() inside of procedures
От
Peter Eisentraut
Тема
Re: transction_timestamp() inside of procedures
Дата
Msg-id
e2ad8aaf-e1d8-499e-4de0-e3616f8d908d@2ndquadrant.com
Ответ на
Re: transction_timestamp() inside of procedures (Peter Eisentraut)
Список
Дерево обсуждения
transction_timestamp() inside of procedures Bruce Momjian <bruce@momjian.us>
Re: transction_timestamp() inside of procedures Michael Paquier <michael@paquier.xyz>
Re: transction_timestamp() inside of procedures Andres Freund <andres@anarazel.de>
Re: transction_timestamp() inside of procedures Michael Paquier <michael@paquier.xyz>
Re: transction_timestamp() inside of procedures Bruce Momjian <bruce@momjian.us>
Re: transction_timestamp() inside of procedures Bruce Momjian <bruce@momjian.us>
Re: transction_timestamp() inside of procedures Bruce Momjian <bruce@momjian.us>
Re: transction_timestamp() inside of procedures "David G. Johnston" <david.g.johnston@gmail.com>
Re: transction_timestamp() inside of procedures Bruce Momjian <bruce@momjian.us>
Re: transction_timestamp() inside of procedures Alvaro Herrera <alvherre@2ndquadrant.com>
Re: transction_timestamp() inside of procedures Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: transction_timestamp() inside of procedures Bruce Momjian <bruce@momjian.us>
Re: transction_timestamp() inside of procedures Tom Lane <tgl@sss.pgh.pa.us>
Re: transction_timestamp() inside of procedures Alvaro Herrera <alvherre@2ndquadrant.com>
Re: transction_timestamp() inside of procedures Tom Lane <tgl@sss.pgh.pa.us>
Re: transction_timestamp() inside of procedures Alvaro Herrera <alvherre@2ndquadrant.com>
Re: transction_timestamp() inside of procedures Andres Freund <andres@anarazel.de>
Re: transction_timestamp() inside of procedures Merlin Moncure <mmoncure@gmail.com>
Re: transction_timestamp() inside of procedures Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: transction_timestamp() inside of procedures Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: transction_timestamp() inside of procedures Andres Freund <andres@anarazel.de>
Re: transction_timestamp() inside of procedures Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: transction_timestamp() inside of procedures Tom Lane <tgl@sss.pgh.pa.us>
Re: transction_timestamp() inside of procedures Andres Freund <andres@anarazel.de>
Re: transction_timestamp() inside of procedures Tom Lane <tgl@sss.pgh.pa.us>
Re: transction_timestamp() inside of procedures Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: transction_timestamp() inside of procedures Bruce Momjian <bruce@momjian.us>
Re: transction_timestamp() inside of procedures Andres Freund <andres@anarazel.de>
Re: transction_timestamp() inside of procedures "Daniel Verite" <daniel@manitou-mail.org>
Re: transction_timestamp() inside of procedures Bruce Momjian <bruce@momjian.us>
Re: transction_timestamp() inside of procedures Andres Freund <andres@anarazel.de>
Re: transction_timestamp() inside of procedures Andres Freund <andres@anarazel.de>
On 26/09/2018 23:48, Peter Eisentraut wrote: > On 26/09/2018 17:54, Alvaro Herrera wrote: >> What could be the use for the transaction timestamp? I think one of the >> most important uses (at least in pg_stat_activity) is to verify that >> transactions are not taking excessively long time to complete; that's >> known to cause all sorts of trouble in Postgres, and probably other >> DBMSs too. If we don't accurately measure what it really is, and >> instead keep the compatibility behavior, we risk panicking people >> because they think some transaction has been running for a long time >> when in reality it's just a very long procedure which commits frequently >> enough not to be a problem. > > That's certainly a good argument. Note that if we implemented that the > transaction timestamp is advanced inside procedures, that would also > mean that the transaction timestamp as observed in pg_stat_activity > would move during VACUUM, for example. That might or might not be > desirable. Attached is a rough implementation. I'd be mildly in favor of doing this, but we have mentioned tradeoffs in this thread. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления
От: Haribabu Kommi
Дата: