aboutsummaryrefslogtreecommitdiff
path: root/src/backend/lib/pairingheap.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-11-04 22:43:08 +0200
committerAlexander Korotkov <akorotkov@postgresql.org>2024-11-04 22:47:57 +0200
commit3a7ae6b3d91e0d011dba1eb8a29e1836c6a33c75 (patch)
tree78d10a6e062353c06046ec2a5d82fa94e4897219 /src/backend/lib/pairingheap.c
parent3293b718a01310c8ce765ace3cb15efcb956a84e (diff)
downloadpostgresql-3a7ae6b3d91e0d011dba1eb8a29e1836c6a33c75.tar.gz
postgresql-3a7ae6b3d91e0d011dba1eb8a29e1836c6a33c75.zip
Revert pg_wal_replay_wait() stored procedure
This commit reverts 3c5db1d6b0, and subsequent improvements and fixes including 8036d73ae3, 867d396ccd, 3ac3ec580c, 0868d7ae70, 85b98b8d5a, 2520226c95, 014f9f34d2, e658038772, e1555645d7, 5035172e4a, 6cfebfe88b, 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
Diffstat (limited to 'src/backend/lib/pairingheap.c')
-rw-r--r--src/backend/lib/pairingheap.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/backend/lib/pairingheap.c b/src/backend/lib/pairingheap.c
index 7858e5e076b..fe1deba13ec 100644
--- a/src/backend/lib/pairingheap.c
+++ b/src/backend/lib/pairingheap.c
@@ -44,26 +44,12 @@ pairingheap_allocate(pairingheap_comparator compare, void *arg)
pairingheap *heap;
heap = (pairingheap *) palloc(sizeof(pairingheap));
- pairingheap_initialize(heap, compare, arg);
-
- return heap;
-}
-
-/*
- * pairingheap_initialize
- *
- * Same as pairingheap_allocate(), but initializes the pairing heap in-place
- * rather than allocating a new chunk of memory. Useful to store the pairing
- * heap in a shared memory.
- */
-void
-pairingheap_initialize(pairingheap *heap, pairingheap_comparator compare,
- void *arg)
-{
heap->ph_compare = compare;
heap->ph_arg = arg;
heap->ph_root = NULL;
+
+ return heap;
}
/*