aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-10-30 13:03:28 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-10-30 13:03:28 -0400
commite65b550b37ec25102813d8e39eeb70f0c7944433 (patch)
treeafad536ae1e512d92dd48284d92ed595ccc7bb28 /src/backend/executor/nodeModifyTable.c
parent81f0a5e38a05811f762b1dec9d344be923025f40 (diff)
downloadpostgresql-e65b550b37ec25102813d8e39eeb70f0c7944433.tar.gz
postgresql-e65b550b37ec25102813d8e39eeb70f0c7944433.zip
Test IsInTransactionChain, not IsTransactionBlock, in vac_update_relstats.
As noted by Noah Misch, my initial cut at fixing bug #11638 didn't cover all cases where ANALYZE might be invoked in an unsafe context. We need to test the result of IsInTransactionChain not IsTransactionBlock; which is notationally a pain because IsInTransactionChain requires an isTopLevel flag, which would have to be passed down through several levels of callers. I chose to pass in_outer_xact (ie, the result of IsInTransactionChain) rather than isTopLevel per se, as that seemed marginally more apropos for the intermediate functions to know about.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions