mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
Revert pg_wal_replay_wait() stored procedure
This commit reverts3c5db1d6b0, and subsequent improvements and fixes including8036d73ae3,867d396ccd,3ac3ec580c,0868d7ae70,85b98b8d5a,2520226c95,014f9f34d2,e658038772,e1555645d7,5035172e4a,6cfebfe88b,73da6b8d1b, ande546989a26. 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
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include "access/twophase.h"
|
||||
#include "access/xlogprefetcher.h"
|
||||
#include "access/xlogrecovery.h"
|
||||
#include "access/xlogwait.h"
|
||||
#include "commands/async.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pgstat.h"
|
||||
@@ -149,7 +148,6 @@ CalculateShmemSize(int *num_semaphores)
|
||||
size = add_size(size, WaitEventCustomShmemSize());
|
||||
size = add_size(size, InjectionPointShmemSize());
|
||||
size = add_size(size, SlotSyncShmemSize());
|
||||
size = add_size(size, WaitLSNShmemSize());
|
||||
|
||||
/* include additional requested shmem from preload libraries */
|
||||
size = add_size(size, total_addin_request);
|
||||
@@ -342,7 +340,6 @@ CreateOrAttachShmemStructs(void)
|
||||
StatsShmemInit();
|
||||
WaitEventCustomShmemInit();
|
||||
InjectionPointShmemInit();
|
||||
WaitLSNShmemInit();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include "access/transam.h"
|
||||
#include "access/twophase.h"
|
||||
#include "access/xlogutils.h"
|
||||
#include "access/xlogwait.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pgstat.h"
|
||||
#include "postmaster/autovacuum.h"
|
||||
@@ -894,11 +893,6 @@ ProcKill(int code, Datum arg)
|
||||
*/
|
||||
LWLockReleaseAll();
|
||||
|
||||
/*
|
||||
* Cleanup waiting for LSN if any.
|
||||
*/
|
||||
WaitLSNCleanup();
|
||||
|
||||
/* Cancel any pending condition variable sleep, too */
|
||||
ConditionVariableCancelSleep();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user