pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Disable recheck_on_update optimization to avoid crashes. 2+ messages / 1 participants [nested] [flat]
* pgsql: Disable recheck_on_update optimization to avoid crashes. @ 2018-11-06 23:33 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-11-06 23:33 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disable recheck_on_update optimization to avoid crashes. The code added by commit c203d6cf8 causes a crash in at least one case, where a potentially-optimizable expression index has a storage type different from the input data type. A cursory code review turned up numerous other problems that seem impractical to fix on short notice. Andres argued for revert of that patch some time ago, and if additional senior committers had been paying attention, that's likely what would have happened, but we were not :-( At this point we can't just revert, at least not in v11, because that would mean an ABI break for code touching relcache entries. And we should not remove the (also buggy) support for the recheck_on_update index reloption, since it might already be used in some databases in the field. So this patch just does the as-little-invasive-as-possible measure of disabling the feature as though recheck_on_update were forced off for all indexes. I also removed the related regression tests (which would otherwise fail) and the user-facing documentation of the reloption. We should undertake a more thorough code cleanup if the patch can't be fixed, but not under the extreme time pressure of being already overdue for 11.1 release. Per report from Ondřej Bouda and subsequent private discussion among pgsql-release. Discussion: https://postgr.es/m/20181106185255.776mstcyehnc63ty@alvherre.pgsql Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5d28c9bd73e29890cccd3f6b188b86f81031f671 Modified Files -------------- doc/src/sgml/ref/create_index.sgml | 37 +----------------- doc/src/sgml/release-11.sgml | 13 ------- src/backend/utils/cache/relcache.c | 3 ++ src/test/regress/expected/func_index.out | 64 -------------------------------- src/test/regress/parallel_schedule | 2 +- src/test/regress/serial_schedule | 1 - src/test/regress/sql/func_index.sql | 31 ---------------- 7 files changed, 6 insertions(+), 145 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Disable recheck_on_update optimization to avoid crashes. @ 2018-11-06 23:33 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-11-06 23:33 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disable recheck_on_update optimization to avoid crashes. The code added by commit c203d6cf8 causes a crash in at least one case, where a potentially-optimizable expression index has a storage type different from the input data type. A cursory code review turned up numerous other problems that seem impractical to fix on short notice. Andres argued for revert of that patch some time ago, and if additional senior committers had been paying attention, that's likely what would have happened, but we were not :-( At this point we can't just revert, at least not in v11, because that would mean an ABI break for code touching relcache entries. And we should not remove the (also buggy) support for the recheck_on_update index reloption, since it might already be used in some databases in the field. So this patch just does the as-little-invasive-as-possible measure of disabling the feature as though recheck_on_update were forced off for all indexes. I also removed the related regression tests (which would otherwise fail) and the user-facing documentation of the reloption. We should undertake a more thorough code cleanup if the patch can't be fixed, but not under the extreme time pressure of being already overdue for 11.1 release. Per report from Ondřej Bouda and subsequent private discussion among pgsql-release. Discussion: https://postgr.es/m/20181106185255.776mstcyehnc63ty@alvherre.pgsql Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/05f84605dbeb9cf8279a157234b24bbb706c5256 Modified Files -------------- doc/src/sgml/ref/create_index.sgml | 37 +----------------- doc/src/sgml/release-11.sgml | 13 ------- src/backend/utils/cache/relcache.c | 3 ++ src/test/regress/expected/func_index.out | 64 -------------------------------- src/test/regress/parallel_schedule | 2 +- src/test/regress/serial_schedule | 1 - src/test/regress/sql/func_index.sql | 31 ---------------- 7 files changed, 6 insertions(+), 145 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-11-06 23:33 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-11-06 23:33 pgsql: Disable recheck_on_update optimization to avoid crashes. Tom Lane <tgl@sss.pgh.pa.us> 2018-11-06 23:33 pgsql: Disable recheck_on_update optimization to avoid crashes. 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