Skip to content

Commit b11ad96

Browse files
committed
Fix stepping on assert in temp_schema_reset.
1 parent bef30ef commit b11ad96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ddl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,9 @@ MtmProcessUtilitySender(PlannedStmt *pstmt, const char *queryString,
10281028
*/
10291029
if (!IsTransactionBlock() && stmt->target == DISCARD_ALL)
10301030
{
1031-
temp_schema_reset();
1031+
/* nothing to do if temp schema wasn't created at all */
1032+
if (TempDropRegistered)
1033+
temp_schema_reset();
10321034
SkipCommand(true);
10331035
MtmGucDiscard();
10341036
}

0 commit comments

Comments
 (0)
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