aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-10-30 13:03:22 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-10-30 13:04:06 -0400
commitfd0f651a867ce4a25160e37bcb9085f3b3209bf8 (patch)
tree0ec7c66e81f5df5621ab8873242245cba206ea83 /src/backend/access/gist/gistxlog.c
parent6057c212f3e783c45e050a78d070edf3e5f069f0 (diff)
downloadpostgresql-fd0f651a867ce4a25160e37bcb9085f3b3209bf8.tar.gz
postgresql-fd0f651a867ce4a25160e37bcb9085f3b3209bf8.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/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions