Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/backend/access/transam/xact.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "catalog/storage_tablespace.h"
#include "catalog/storage_database.h"
#include "commands/async.h"
#include "commands/matview.h"
#include "commands/dbcommands.h"
#include "commands/extension.h"
#include "commands/resgroupcmds.h"
Expand Down Expand Up @@ -3565,6 +3566,7 @@ AbortTransaction(void)
AtAbort_Notify();
AtEOXact_RelationMap(false, is_parallel_worker);
AtAbort_Twophase();
AtAbort_IVM();

/*
* Advertise the fact that we aborted in pg_xact (assuming that we got as
Expand Down Expand Up @@ -6152,6 +6154,9 @@ AbortSubTransaction(void)
AbortBufferIO();
UnlockBuffers();

/* Clean up hash entries for incremental view maintenance */
AtAbort_IVM();

/* Reset WAL record construction state */
XLogResetInsertion();

Expand Down
1 change: 1 addition & 0 deletions src/backend/catalog/heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,7 @@ InsertPgClassTuple(Relation pg_class_desc,
values[Anum_pg_class_relrewrite - 1] = ObjectIdGetDatum(rd_rel->relrewrite);
values[Anum_pg_class_relfrozenxid - 1] = TransactionIdGetDatum(rd_rel->relfrozenxid);
values[Anum_pg_class_relminmxid - 1] = MultiXactIdGetDatum(rd_rel->relminmxid);
values[Anum_pg_class_relisivm - 1] = BoolGetDatum(rd_rel->relisivm);
if (relacl != (Datum) 0)
values[Anum_pg_class_relacl - 1] = relacl;
else
Expand Down
1 change: 1 addition & 0 deletions src/backend/catalog/index.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ index_create(Relation heapRelation,
indexRelation->rd_rel->relowner = heapRelation->rd_rel->relowner;
indexRelation->rd_rel->relam = accessMethodObjectId;
indexRelation->rd_rel->relispartition = OidIsValid(parentIndexRelid);
indexRelation->rd_rel->relisivm = false;

/*
* store index's pg_class entry
Expand Down
Loading