pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix commit_ts for FrozenXid and BootstrapXid 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix commit_ts for FrozenXid and BootstrapXid @ 2016-11-24 18:42 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2016-11-24 18:42 UTC (permalink / raw) To: pgsql-committers Fix commit_ts for FrozenXid and BootstrapXid Previously, requesting commit timestamp for transactions FrozenTransactionId and BootstrapTransactionId resulted in an error. But since those values can validly appear in committed tuples' Xmin, this behavior is unhelpful and error prone: each caller would have to special-case those values before requesting timestamp data for an Xid. We already have a perfectly good interface for returning "the Xid you requested is too old for us to have commit TS data for it", so let's use that instead. Backpatch to 9.5, where commit timestamps appeared. Author: Craig Ringer Discussion: https://www.postgresql.org/message-id/CAMsr+YFM5Q=+ry3mKvWEqRTxrB0iU3qUSRnS28nz6FJYtBwhJg@mail.gmail... Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/4aaddf2f009821e29aea3735e44332ad9ca47aaa Modified Files -------------- src/backend/access/transam/commit_ts.c | 11 +++++++++-- src/test/modules/commit_ts/expected/commit_timestamp.out | 12 ++++++++++-- src/test/modules/commit_ts/expected/commit_timestamp_1.out | 12 ++++++++++-- src/test/modules/commit_ts/t/004_restart.pl | 14 ++++---------- 4 files changed, 33 insertions(+), 16 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix commit_ts for FrozenXid and BootstrapXid @ 2016-11-24 18:42 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2016-11-24 18:42 UTC (permalink / raw) To: pgsql-committers Fix commit_ts for FrozenXid and BootstrapXid Previously, requesting commit timestamp for transactions FrozenTransactionId and BootstrapTransactionId resulted in an error. But since those values can validly appear in committed tuples' Xmin, this behavior is unhelpful and error prone: each caller would have to special-case those values before requesting timestamp data for an Xid. We already have a perfectly good interface for returning "the Xid you requested is too old for us to have commit TS data for it", so let's use that instead. Backpatch to 9.5, where commit timestamps appeared. Author: Craig Ringer Discussion: https://www.postgresql.org/message-id/CAMsr+YFM5Q=+ry3mKvWEqRTxrB0iU3qUSRnS28nz6FJYtBwhJg@mail.gmail... Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/9b66342901f2a3845fe2b44c647bb1316220975c Modified Files -------------- src/backend/access/transam/commit_ts.c | 11 +++++++++-- src/test/modules/commit_ts/expected/commit_timestamp.out | 12 ++++++++++-- src/test/modules/commit_ts/expected/commit_timestamp_1.out | 12 ++++++++++-- src/test/modules/commit_ts/t/004_restart.pl | 14 ++++---------- 4 files changed, 33 insertions(+), 16 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix commit_ts for FrozenXid and BootstrapXid @ 2016-11-24 18:42 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2016-11-24 18:42 UTC (permalink / raw) To: pgsql-committers Fix commit_ts for FrozenXid and BootstrapXid Previously, requesting commit timestamp for transactions FrozenTransactionId and BootstrapTransactionId resulted in an error. But since those values can validly appear in committed tuples' Xmin, this behavior is unhelpful and error prone: each caller would have to special-case those values before requesting timestamp data for an Xid. We already have a perfectly good interface for returning "the Xid you requested is too old for us to have commit TS data for it", so let's use that instead. Backpatch to 9.5, where commit timestamps appeared. Author: Craig Ringer Discussion: https://www.postgresql.org/message-id/CAMsr+YFM5Q=+ry3mKvWEqRTxrB0iU3qUSRnS28nz6FJYtBwhJg@mail.gmail... Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/7816d13563b74379c9db618e46883c6db5fc0680 Modified Files -------------- src/backend/access/transam/commit_ts.c | 11 +++++++++-- src/test/modules/commit_ts/expected/commit_timestamp.out | 12 ++++++++++-- src/test/modules/commit_ts/expected/commit_timestamp_1.out | 12 ++++++++++-- 3 files changed, 29 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-11-24 18:42 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-11-24 18:42 pgsql: Fix commit_ts for FrozenXid and BootstrapXid Alvaro Herrera <alvherre@alvh.no-ip.org> 2016-11-24 18:42 pgsql: Fix commit_ts for FrozenXid and BootstrapXid Alvaro Herrera <alvherre@alvh.no-ip.org> 2016-11-24 18:42 pgsql: Fix commit_ts for FrozenXid and BootstrapXid Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox