aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-10-30 13:03:31 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-10-30 13:03:31 -0400
commit38cb8687a9dde85b1dad3d347ab420ecdf2259b7 (patch)
treee328d92226aa0fb984db7014f455d007960aaacb /src/backend/commands/dbcommands.c
parent40058fbcecf66b39ad5c608d3bda55d56df8b795 (diff)
downloadpostgresql-38cb8687a9dde85b1dad3d347ab420ecdf2259b7.tar.gz
postgresql-38cb8687a9dde85b1dad3d347ab420ecdf2259b7.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