diff --git a/src/ddl.c b/src/ddl.c index 0e2cae1e54..0bd82284c0 100644 --- a/src/ddl.c +++ b/src/ddl.c @@ -1401,9 +1401,18 @@ MtmApplyDDLMessage(const char *messageBody, bool transactional) DDLApplyInProgress = transactional ? MTM_DDL_IN_PROGRESS_TX : MTM_DDL_IN_PROGRESS_NONTX; + + /* + * Due to ef94805096 'Restore the portal-level snapshot after procedure COMMIT/ROLLBACK.' + * there should be ActiveSnapshot set. Otherwise EnsurePortalSnapshotExists + * will assert on ActivePortal->portalSnapshot == NULL since current + * portal has snapshot in outer transaction. + */ + PushActiveSnapshot(GetTransactionSnapshot()); SPI_connect(); rc = SPI_execute(messageBody, false, 0); SPI_finish(); + PopActiveSnapshot(); if (rc < 0) elog(ERROR, "Failed to execute utility statement %s", messageBody); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy