We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23e0b00 commit 833f138Copy full SHA for 833f138
src/backend/tcop/postgres.c
@@ -1113,7 +1113,7 @@ exec_simple_query(const char *query_string)
1113
/*
1114
* Set up a snapshot if parse analysis/planning will need one.
1115
*/
1116
- if (analyze_requires_snapshot(parsetree) || commandTag == CMDTAG_SELECT || commandTag == CMDTAG_INSERT || commandTag == CMDTAG_UPDATE)
+ if (analyze_requires_snapshot(parsetree) || commandTag == CMDTAG_SELECT || commandTag == CMDTAG_INSERT || commandTag == CMDTAG_UPDATE|| commandTag == CMDTAG_DELETE)
1117
{
1118
PushActiveSnapshot(GetTransactionSnapshot());
1119
snapshot_set = true;
0 commit comments