mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +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:
@@ -2360,14 +2360,11 @@ PrepareRedoAdd(char *buf, XLogRecPtr start_lsn,
|
||||
|
||||
/* Get a free gxact from the freelist */
|
||||
if (TwoPhaseState->freeGXacts == NULL)
|
||||
{
|
||||
StandbyParamErrorPauseRecovery();
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("maximum number of prepared transactions reached"),
|
||||
errhint("Increase max_prepared_transactions (currently %d).",
|
||||
max_prepared_xacts)));
|
||||
}
|
||||
gxact = TwoPhaseState->freeGXacts;
|
||||
TwoPhaseState->freeGXacts = gxact->next;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user