mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Revert "Improve handling of parameter differences in physical replication"
This reverts commit 246f136e76
.
That patch wasn't quite complete enough.
Discussion: https://www.postgresql.org/message-id/flat/E1jIpJu-0007Ql-CL%40gemulon.postgresql.org
This commit is contained in:
@@ -965,13 +965,10 @@ LockAcquireExtended(const LOCKTAG *locktag,
|
||||
if (locallockp)
|
||||
*locallockp = NULL;
|
||||
if (reportMemoryError)
|
||||
{
|
||||
StandbyParamErrorPauseRecovery();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of shared memory"),
|
||||
errhint("You might need to increase max_locks_per_transaction.")));
|
||||
}
|
||||
else
|
||||
return LOCKACQUIRE_NOT_AVAIL;
|
||||
}
|
||||
@@ -1006,13 +1003,10 @@ LockAcquireExtended(const LOCKTAG *locktag,
|
||||
if (locallockp)
|
||||
*locallockp = NULL;
|
||||
if (reportMemoryError)
|
||||
{
|
||||
StandbyParamErrorPauseRecovery();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of shared memory"),
|
||||
errhint("You might need to increase max_locks_per_transaction.")));
|
||||
}
|
||||
else
|
||||
return LOCKACQUIRE_NOT_AVAIL;
|
||||
}
|
||||
@@ -2834,7 +2828,6 @@ FastPathGetRelationLockEntry(LOCALLOCK *locallock)
|
||||
{
|
||||
LWLockRelease(partitionLock);
|
||||
LWLockRelease(&MyProc->backendLock);
|
||||
StandbyParamErrorPauseRecovery();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of shared memory"),
|
||||
@@ -4165,7 +4158,6 @@ lock_twophase_recover(TransactionId xid, uint16 info,
|
||||
if (!lock)
|
||||
{
|
||||
LWLockRelease(partitionLock);
|
||||
StandbyParamErrorPauseRecovery();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of shared memory"),
|
||||
@@ -4231,7 +4223,6 @@ lock_twophase_recover(TransactionId xid, uint16 info,
|
||||
elog(PANIC, "lock table corrupted");
|
||||
}
|
||||
LWLockRelease(partitionLock);
|
||||
StandbyParamErrorPauseRecovery();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of shared memory"),
|
||||
@@ -4524,7 +4515,6 @@ VirtualXactLock(VirtualTransactionId vxid, bool wait)
|
||||
{
|
||||
LWLockRelease(partitionLock);
|
||||
LWLockRelease(&proc->backendLock);
|
||||
StandbyParamErrorPauseRecovery();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of shared memory"),
|
||||
|
Reference in New Issue
Block a user