mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -3654,14 +3654,7 @@ KnownAssignedXidsAdd(TransactionId from_xid, TransactionId to_xid,
|
||||
* If it still won't fit then we're out of memory
|
||||
*/
|
||||
if (head + nxids > pArray->maxKnownAssignedXids)
|
||||
{
|
||||
StandbyParamErrorPauseRecovery();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of shared memory"),
|
||||
errdetail("There are no more KnownAssignedXids slots."),
|
||||
errhint("You might need to increase max_connections.")));
|
||||
}
|
||||
elog(ERROR, "too many KnownAssignedXids");
|
||||
}
|
||||
|
||||
/* Now we can insert the xids into the space starting at head */
|
||||
|
@@ -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