diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-30 13:03:25 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-30 13:04:13 -0400 |
commit | 7f4ece03d675a2a6cb6cec14f564744b5c01e5a4 (patch) | |
tree | 496a663fd9604705e6ae70ce8a5439b232946945 /src/tutorial/basics.source | |
parent | 1c49dae165bcee69bf3327d6ae20271d82cdf6bf (diff) | |
download | postgresql-7f4ece03d675a2a6cb6cec14f564744b5c01e5a4.tar.gz postgresql-7f4ece03d675a2a6cb6cec14f564744b5c01e5a4.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/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions