pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel 5+ messages / 1 participants [nested] [flat]
* pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel @ 2018-10-06 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-10-06 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Propagate xactStartTimestamp and stmtStartTimestamp to parallel workers. Previously, a worker process would establish values for these based on its own start time. In v10 and up, this can trivially be shown to cause misbehavior of transaction_timestamp(), timestamp_in(), and related functions which are (perhaps unwisely?) marked parallel-safe. It seems likely that other behaviors might diverge from what happens in the parent as well. It's not as trivial to demonstrate problems in 9.6 or 9.5, but I'm sure it's still possible, so back-patch to all branches containing parallel worker infrastructure. In HEAD only, mark now() and statement_timestamp() as parallel-safe (other affected functions already were). While in theory we could still squeeze that change into v11, it doesn't seem important enough to force a last-minute catversion bump. Konstantin Knizhnik, whacked around a bit by me Discussion: https://postgr.es/m/6406dbd2-5d37-4cb6-6eb2-9c44172c7e7c@postgrespro.ru Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/07ee62ce9e507c14632c0517aeeae4e60b0d1997 Modified Files -------------- src/backend/access/transam/parallel.c | 11 +++++++++++ src/backend/access/transam/xact.c | 36 +++++++++++++++++++++++++++++++---- src/include/access/xact.h | 1 + src/include/catalog/catversion.h | 2 +- src/include/catalog/pg_proc.dat | 12 +++++++----- 5 files changed, 52 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel @ 2018-10-06 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-10-06 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Propagate xactStartTimestamp and stmtStartTimestamp to parallel workers. Previously, a worker process would establish values for these based on its own start time. In v10 and up, this can trivially be shown to cause misbehavior of transaction_timestamp(), timestamp_in(), and related functions which are (perhaps unwisely?) marked parallel-safe. It seems likely that other behaviors might diverge from what happens in the parent as well. It's not as trivial to demonstrate problems in 9.6 or 9.5, but I'm sure it's still possible, so back-patch to all branches containing parallel worker infrastructure. In HEAD only, mark now() and statement_timestamp() as parallel-safe (other affected functions already were). While in theory we could still squeeze that change into v11, it doesn't seem important enough to force a last-minute catversion bump. Konstantin Knizhnik, whacked around a bit by me Discussion: https://postgr.es/m/6406dbd2-5d37-4cb6-6eb2-9c44172c7e7c@postgrespro.ru Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6bf278df891d7601eda2824a8b0df15dc52b7def Modified Files -------------- src/backend/access/transam/parallel.c | 11 +++++++++++ src/backend/access/transam/xact.c | 36 +++++++++++++++++++++++++++++++---- src/include/access/xact.h | 1 + 3 files changed, 44 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel @ 2018-10-06 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-10-06 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Propagate xactStartTimestamp and stmtStartTimestamp to parallel workers. Previously, a worker process would establish values for these based on its own start time. In v10 and up, this can trivially be shown to cause misbehavior of transaction_timestamp(), timestamp_in(), and related functions which are (perhaps unwisely?) marked parallel-safe. It seems likely that other behaviors might diverge from what happens in the parent as well. It's not as trivial to demonstrate problems in 9.6 or 9.5, but I'm sure it's still possible, so back-patch to all branches containing parallel worker infrastructure. In HEAD only, mark now() and statement_timestamp() as parallel-safe (other affected functions already were). While in theory we could still squeeze that change into v11, it doesn't seem important enough to force a last-minute catversion bump. Konstantin Knizhnik, whacked around a bit by me Discussion: https://postgr.es/m/6406dbd2-5d37-4cb6-6eb2-9c44172c7e7c@postgrespro.ru Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/58454d0bb07c222fae19c4ced38beef36e27015b Modified Files -------------- src/backend/access/transam/parallel.c | 11 +++++++++++ src/backend/access/transam/xact.c | 36 +++++++++++++++++++++++++++++++---- src/include/access/xact.h | 1 + 3 files changed, 44 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel @ 2018-10-06 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-10-06 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Propagate xactStartTimestamp and stmtStartTimestamp to parallel workers. Previously, a worker process would establish values for these based on its own start time. In v10 and up, this can trivially be shown to cause misbehavior of transaction_timestamp(), timestamp_in(), and related functions which are (perhaps unwisely?) marked parallel-safe. It seems likely that other behaviors might diverge from what happens in the parent as well. It's not as trivial to demonstrate problems in 9.6 or 9.5, but I'm sure it's still possible, so back-patch to all branches containing parallel worker infrastructure. In HEAD only, mark now() and statement_timestamp() as parallel-safe (other affected functions already were). While in theory we could still squeeze that change into v11, it doesn't seem important enough to force a last-minute catversion bump. Konstantin Knizhnik, whacked around a bit by me Discussion: https://postgr.es/m/6406dbd2-5d37-4cb6-6eb2-9c44172c7e7c@postgrespro.ru Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bdc2e7a19af7066ba5688fa0e0d3e6c03558c0c0 Modified Files -------------- src/backend/access/transam/parallel.c | 11 +++++++++++ src/backend/access/transam/xact.c | 36 +++++++++++++++++++++++++++++++---- src/include/access/xact.h | 1 + 3 files changed, 44 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel @ 2018-10-06 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-10-06 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Propagate xactStartTimestamp and stmtStartTimestamp to parallel workers. Previously, a worker process would establish values for these based on its own start time. In v10 and up, this can trivially be shown to cause misbehavior of transaction_timestamp(), timestamp_in(), and related functions which are (perhaps unwisely?) marked parallel-safe. It seems likely that other behaviors might diverge from what happens in the parent as well. It's not as trivial to demonstrate problems in 9.6 or 9.5, but I'm sure it's still possible, so back-patch to all branches containing parallel worker infrastructure. In HEAD only, mark now() and statement_timestamp() as parallel-safe (other affected functions already were). While in theory we could still squeeze that change into v11, it doesn't seem important enough to force a last-minute catversion bump. Konstantin Knizhnik, whacked around a bit by me Discussion: https://postgr.es/m/6406dbd2-5d37-4cb6-6eb2-9c44172c7e7c@postgrespro.ru Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3c9dd963cec6d4c314bccf74256acc893108a4be Modified Files -------------- src/backend/access/transam/parallel.c | 11 +++++++++++ src/backend/access/transam/xact.c | 36 +++++++++++++++++++++++++++++++---- src/include/access/xact.h | 1 + 3 files changed, 44 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2018-10-06 16:00 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-10-06 16:00 pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel Tom Lane <tgl@sss.pgh.pa.us> 2018-10-06 16:00 pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel Tom Lane <tgl@sss.pgh.pa.us> 2018-10-06 16:00 pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel Tom Lane <tgl@sss.pgh.pa.us> 2018-10-06 16:00 pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel Tom Lane <tgl@sss.pgh.pa.us> 2018-10-06 16:00 pgsql: Propagate xactStartTimestamp and stmtStartTimestamp to parallel Tom Lane <tgl@sss.pgh.pa.us>
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