diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-30 13:03:34 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-30 13:03:34 -0400 |
commit | fcf0246b2c58d4b7e480ccb11e1bdaeef023a4f6 (patch) | |
tree | fa926f5b261a3b5c7b4f5d2bfa947ec1b270a704 /src/backend/commands/dbcommands.c | |
parent | 6ec1c3ef8b868dd696e1394a88797e616218e9c1 (diff) | |
download | postgresql-fcf0246b2c58d4b7e480ccb11e1bdaeef023a4f6.tar.gz postgresql-fcf0246b2c58d4b7e480ccb11e1bdaeef023a4f6.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/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions