Skip to content

Commit 1546cea

Browse files
Mihahackorum
authored andcommitted
Check system cache invalidations before each command in transaction
1 parent d29d469 commit 1546cea

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

  • src/backend/access/transam

src/backend/access/transam/xact.c

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3126,14 +3126,22 @@ StartTransactionCommand(void)
31263126

31273127
/*
31283128
* We are somewhere in a transaction block or subtransaction and
3129-
* about to start a new command. For now we do nothing, but
3130-
* someday we may do command-local resource initialization. (Note
3131-
* that any needed CommandCounterIncrement was done by the
3132-
* previous CommitTransactionCommand.)
3129+
* about to start a new command. (Note that any needed
3130+
* CommandCounterIncrement was done by the previous
3131+
* CommitTransactionCommand.)
31333132
*/
31343133
case TBLOCK_INPROGRESS:
3135-
case TBLOCK_IMPLICIT_INPROGRESS:
31363134
case TBLOCK_SUBINPROGRESS:
3135+
AcceptInvalidationMessages();
3136+
break;
3137+
3138+
/*
3139+
* We are somewhere in implicit transaction block. For now we do
3140+
* nothing, but someday we may do command-local resource
3141+
* initialization. (Note that any needed CommandCounterIncrement
3142+
* was done by the previous CommitTransactionCommand.)
3143+
*/
3144+
case TBLOCK_IMPLICIT_INPROGRESS:
31373145
break;
31383146

31393147
/*

0 commit comments

Comments
 (0)