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
19 changes: 19 additions & 0 deletions src/backend/commands/tablecmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -19272,6 +19272,25 @@ remove_on_commit_action(Oid relid)
}
}

/*
* Return the ON COMMIT action set for a relation, or NOOP if none
* is registered
*/
OnCommitAction
get_on_commit_action(Oid relid)
{
ListCell *l;

foreach(l, on_commits)
{
OnCommitItem *oc = (OnCommitItem *) lfirst(l);

if (oc->relid == relid)
return oc->oncommit;
}
return ONCOMMIT_NOOP;
}

/*
* Perform ON COMMIT actions.
*
Expand Down
Loading