Revert pg_wal_replay_wait() stored procedure
authorAlexander Korotkov <[email protected]>
Mon, 4 Nov 2024 20:43:08 +0000 (22:43 +0200)
committerAlexander Korotkov <[email protected]>
Mon, 4 Nov 2024 20:47:57 +0000 (22:47 +0200)
commit3a7ae6b3d91e0d011dba1eb8a29e1836c6a33c75
tree78d10a6e062353c06046ec2a5d82fa94e4897219
parent3293b718a01310c8ce765ace3cb15efcb956a84e
Revert pg_wal_replay_wait() stored procedure

This commit reverts 3c5db1d6b0, and subsequent improvements and fixes
including 8036d73ae3867d396ccd3ac3ec580c0868d7ae7085b98b8d5a,
2520226c95014f9f34d2e658038772e1555645d75035172e4a6cfebfe88b,
73da6b8d1b, and e546989a26.

The reason for reverting is a set of remaining issues.  Most notably, the
stored procedure appears to need more effort than the utility statement
to turn the backend into a "snapshot-less" state.  This makes an approach
to use stored procedures questionable.

Catversion is bumped.

Discussion: https://postgr.es/m/Zyhj2anOPRKtb0xW%40paquier.xyz
22 files changed:
doc/src/sgml/func.sgml
src/backend/access/transam/Makefile
src/backend/access/transam/meson.build
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogfuncs.c
src/backend/access/transam/xlogrecovery.c
src/backend/access/transam/xlogwait.c [deleted file]
src/backend/catalog/system_functions.sql
src/backend/lib/pairingheap.c
src/backend/storage/ipc/ipci.c
src/backend/storage/lmgr/proc.c
src/backend/tcop/pquery.c
src/backend/utils/activity/wait_event_names.txt
src/include/access/xlogwait.h [deleted file]
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/lib/pairingheap.h
src/include/storage/lwlocklist.h
src/test/recovery/meson.build
src/test/recovery/t/043_wal_replay_wait.pl [deleted file]
src/tools/pgindent/typedefs.list