Skip to content

Commit 23a8c90

Browse files
author
Antonin Houska
committed
Adopt recent addition of Assert() to PG core.
1 parent 1b96c14 commit 23a8c90

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pg_squeeze.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ squeeze_table_internal(Name relschema, Name relname, Name indname,
421421
bool source_finalized;
422422
bool xmin_valid;
423423

424+
/*
425+
* Cope with commit 706054b11b in PG core.
426+
*/
427+
PushActiveSnapshot(GetTransactionSnapshot());
428+
424429
relrv_src = makeRangeVar(NameStr(*relschema), NameStr(*relname), -1);
425430
rel_src = table_openrv(relrv_src, AccessShareLock);
426431

@@ -863,6 +868,9 @@ squeeze_table_internal(Name relschema, Name relname, Name indname,
863868
object.objectSubId = 0;
864869
object.objectId = relid_dst;
865870
performDeletion(&object, DROP_RESTRICT, PERFORM_DELETION_INTERNAL);
871+
872+
/* See the top of the function. */
873+
PopActiveSnapshot();
866874
}
867875

868876
static int

0 commit comments

Comments
 (0)