pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Prevent excess SimpleLruTruncate() deletion. 7+ messages / 1 participants [nested] [flat]
* pgsql: Prevent excess SimpleLruTruncate() deletion. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Prevent excess SimpleLruTruncate() deletion. Every core SLRU wraps around. With the exception of pg_notify, the wrap point can fall in the middle of a page. Account for this in the PagePrecedes callback specification and in SimpleLruTruncate()'s use of said callback. Update each callback implementation to fit the new specification. This changes SerialPagePrecedesLogically() from the style of asyncQueuePagePrecedes() to the style of CLOGPagePrecedes(). (Whereas pg_clog and pg_serial share a key space, pg_serial is nothing like pg_notify.) The bug fixed here has the same symptoms and user followup steps as 592a589a04bd456410b853d86bd05faa9432cbbb. Back-patch to 9.5 (all supported versions). Reviewed by Andrey Borodin and (in earlier versions) by Tom Lane. Discussion: https://postgr.es/m/20190202083822.GC32531@gust.leadboat.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6db992833c04c0322f7f34a486adece01651f929 Modified Files -------------- src/backend/access/transam/clog.c | 27 +++++-- src/backend/access/transam/commit_ts.c | 35 +++++--- src/backend/access/transam/multixact.c | 36 ++++++--- src/backend/access/transam/slru.c | 143 +++++++++++++++++++++++++++++---- src/backend/access/transam/subtrans.c | 17 ++-- src/backend/commands/async.c | 11 ++- src/backend/storage/lmgr/predicate.c | 109 +++++++++++++++++++++---- src/include/access/slru.h | 16 +++- 8 files changed, 314 insertions(+), 80 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Prevent excess SimpleLruTruncate() deletion. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Prevent excess SimpleLruTruncate() deletion. Every core SLRU wraps around. With the exception of pg_notify, the wrap point can fall in the middle of a page. Account for this in the PagePrecedes callback specification and in SimpleLruTruncate()'s use of said callback. Update each callback implementation to fit the new specification. This changes SerialPagePrecedesLogically() from the style of asyncQueuePagePrecedes() to the style of CLOGPagePrecedes(). (Whereas pg_clog and pg_serial share a key space, pg_serial is nothing like pg_notify.) The bug fixed here has the same symptoms and user followup steps as 592a589a04bd456410b853d86bd05faa9432cbbb. Back-patch to 9.5 (all supported versions). Reviewed by Andrey Borodin and (in earlier versions) by Tom Lane. Discussion: https://postgr.es/m/20190202083822.GC32531@gust.leadboat.com Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6eb3fc7fcd89258c2f4bb3dde03e41e6ede2be5f Modified Files -------------- src/backend/access/transam/clog.c | 27 +++++-- src/backend/access/transam/commit_ts.c | 35 +++++--- src/backend/access/transam/multixact.c | 38 +++++---- src/backend/access/transam/slru.c | 143 +++++++++++++++++++++++++++++---- src/backend/access/transam/subtrans.c | 17 ++-- src/backend/commands/async.c | 11 ++- src/backend/storage/lmgr/predicate.c | 109 +++++++++++++++++++++---- src/include/access/slru.h | 16 +++- 8 files changed, 315 insertions(+), 81 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Prevent excess SimpleLruTruncate() deletion. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Prevent excess SimpleLruTruncate() deletion. Every core SLRU wraps around. With the exception of pg_notify, the wrap point can fall in the middle of a page. Account for this in the PagePrecedes callback specification and in SimpleLruTruncate()'s use of said callback. Update each callback implementation to fit the new specification. This changes SerialPagePrecedesLogically() from the style of asyncQueuePagePrecedes() to the style of CLOGPagePrecedes(). (Whereas pg_clog and pg_serial share a key space, pg_serial is nothing like pg_notify.) The bug fixed here has the same symptoms and user followup steps as 592a589a04bd456410b853d86bd05faa9432cbbb. Back-patch to 9.5 (all supported versions). Reviewed by Andrey Borodin and (in earlier versions) by Tom Lane. Discussion: https://postgr.es/m/20190202083822.GC32531@gust.leadboat.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/66087f7e922c7279ee2c1967760de0c1f942522b Modified Files -------------- src/backend/access/transam/clog.c | 27 +++++-- src/backend/access/transam/commit_ts.c | 35 +++++--- src/backend/access/transam/multixact.c | 38 +++++---- src/backend/access/transam/slru.c | 143 +++++++++++++++++++++++++++++---- src/backend/access/transam/subtrans.c | 17 ++-- src/backend/commands/async.c | 7 +- src/backend/storage/lmgr/predicate.c | 109 +++++++++++++++++++++---- src/include/access/slru.h | 16 +++- 8 files changed, 312 insertions(+), 80 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Prevent excess SimpleLruTruncate() deletion. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Prevent excess SimpleLruTruncate() deletion. Every core SLRU wraps around. With the exception of pg_notify, the wrap point can fall in the middle of a page. Account for this in the PagePrecedes callback specification and in SimpleLruTruncate()'s use of said callback. Update each callback implementation to fit the new specification. This changes SerialPagePrecedesLogically() from the style of asyncQueuePagePrecedes() to the style of CLOGPagePrecedes(). (Whereas pg_clog and pg_serial share a key space, pg_serial is nothing like pg_notify.) The bug fixed here has the same symptoms and user followup steps as 592a589a04bd456410b853d86bd05faa9432cbbb. Back-patch to 9.5 (all supported versions). Reviewed by Andrey Borodin and (in earlier versions) by Tom Lane. Discussion: https://postgr.es/m/20190202083822.GC32531@gust.leadboat.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/677f6cb1d9875e9d4bbc7d3acde39b52bcbfdf11 Modified Files -------------- src/backend/access/transam/clog.c | 27 +++++-- src/backend/access/transam/commit_ts.c | 35 +++++--- src/backend/access/transam/multixact.c | 38 +++++---- src/backend/access/transam/slru.c | 143 +++++++++++++++++++++++++++++---- src/backend/access/transam/subtrans.c | 17 ++-- src/backend/commands/async.c | 7 +- src/backend/storage/lmgr/predicate.c | 109 +++++++++++++++++++++---- src/include/access/slru.h | 16 +++- 8 files changed, 312 insertions(+), 80 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Prevent excess SimpleLruTruncate() deletion. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Prevent excess SimpleLruTruncate() deletion. Every core SLRU wraps around. With the exception of pg_notify, the wrap point can fall in the middle of a page. Account for this in the PagePrecedes callback specification and in SimpleLruTruncate()'s use of said callback. Update each callback implementation to fit the new specification. This changes SerialPagePrecedesLogically() from the style of asyncQueuePagePrecedes() to the style of CLOGPagePrecedes(). (Whereas pg_clog and pg_serial share a key space, pg_serial is nothing like pg_notify.) The bug fixed here has the same symptoms and user followup steps as 592a589a04bd456410b853d86bd05faa9432cbbb. Back-patch to 9.5 (all supported versions). Reviewed by Andrey Borodin and (in earlier versions) by Tom Lane. Discussion: https://postgr.es/m/20190202083822.GC32531@gust.leadboat.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9afba9b0e28259e71e70db7f919c39f050ddd05d Modified Files -------------- src/backend/access/transam/clog.c | 27 +++++-- src/backend/access/transam/commit_ts.c | 34 +++++--- src/backend/access/transam/multixact.c | 38 +++++---- src/backend/access/transam/slru.c | 143 +++++++++++++++++++++++++++++---- src/backend/access/transam/subtrans.c | 17 ++-- src/backend/commands/async.c | 7 +- src/backend/storage/lmgr/predicate.c | 109 +++++++++++++++++++++---- src/include/access/slru.h | 16 +++- 8 files changed, 312 insertions(+), 79 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Prevent excess SimpleLruTruncate() deletion. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Prevent excess SimpleLruTruncate() deletion. Every core SLRU wraps around. With the exception of pg_notify, the wrap point can fall in the middle of a page. Account for this in the PagePrecedes callback specification and in SimpleLruTruncate()'s use of said callback. Update each callback implementation to fit the new specification. This changes SerialPagePrecedesLogically() from the style of asyncQueuePagePrecedes() to the style of CLOGPagePrecedes(). (Whereas pg_clog and pg_serial share a key space, pg_serial is nothing like pg_notify.) The bug fixed here has the same symptoms and user followup steps as 592a589a04bd456410b853d86bd05faa9432cbbb. Back-patch to 9.5 (all supported versions). Reviewed by Andrey Borodin and (in earlier versions) by Tom Lane. Discussion: https://postgr.es/m/20190202083822.GC32531@gust.leadboat.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1a31d8c52db4220f162ed3c4812569843daf950e Modified Files -------------- src/backend/access/transam/clog.c | 27 +++++-- src/backend/access/transam/commit_ts.c | 34 +++++--- src/backend/access/transam/multixact.c | 38 +++++---- src/backend/access/transam/slru.c | 143 +++++++++++++++++++++++++++++---- src/backend/access/transam/subtrans.c | 17 ++-- src/backend/commands/async.c | 7 +- src/backend/storage/lmgr/predicate.c | 109 +++++++++++++++++++++---- src/include/access/slru.h | 16 +++- 8 files changed, 312 insertions(+), 79 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Prevent excess SimpleLruTruncate() deletion. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Prevent excess SimpleLruTruncate() deletion. Every core SLRU wraps around. With the exception of pg_notify, the wrap point can fall in the middle of a page. Account for this in the PagePrecedes callback specification and in SimpleLruTruncate()'s use of said callback. Update each callback implementation to fit the new specification. This changes SerialPagePrecedesLogically() from the style of asyncQueuePagePrecedes() to the style of CLOGPagePrecedes(). (Whereas pg_clog and pg_serial share a key space, pg_serial is nothing like pg_notify.) The bug fixed here has the same symptoms and user followup steps as 592a589a04bd456410b853d86bd05faa9432cbbb. Back-patch to 9.5 (all supported versions). Reviewed by Andrey Borodin and (in earlier versions) by Tom Lane. Discussion: https://postgr.es/m/20190202083822.GC32531@gust.leadboat.com Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c424c75f5382c43ed334e7bb4f74cbfea4425df5 Modified Files -------------- src/backend/access/transam/clog.c | 27 +++++-- src/backend/access/transam/commit_ts.c | 34 +++++--- src/backend/access/transam/multixact.c | 38 +++++---- src/backend/access/transam/slru.c | 143 +++++++++++++++++++++++++++++---- src/backend/access/transam/subtrans.c | 17 ++-- src/backend/commands/async.c | 7 +- src/backend/storage/lmgr/predicate.c | 109 +++++++++++++++++++++---- src/include/access/slru.h | 16 +++- 8 files changed, 312 insertions(+), 79 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2021-01-16 20:22 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-01-16 20:22 pgsql: Prevent excess SimpleLruTruncate() deletion. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Prevent excess SimpleLruTruncate() deletion. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Prevent excess SimpleLruTruncate() deletion. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Prevent excess SimpleLruTruncate() deletion. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Prevent excess SimpleLruTruncate() deletion. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Prevent excess SimpleLruTruncate() deletion. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Prevent excess SimpleLruTruncate() deletion. Noah Misch <noah@leadboat.com>
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