aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-09-27 11:28:24 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-09-27 11:28:24 -0400
commitb9bffa004a9980ac235b6ff541ee2fe0e9800372 (patch)
tree86fa75986a658c45c1bafb09787120e4c4c60247 /src/backend/utils/adt/jsonb_util.c
parentd9cacca2d139d9e0792544f773d2361d8478c131 (diff)
downloadpostgresql-b9bffa004a9980ac235b6ff541ee2fe0e9800372.tar.gz
postgresql-b9bffa004a9980ac235b6ff541ee2fe0e9800372.zip
ANALYZE a_star and its children to avoid plan instability in tests.
We've noted certain EXPLAIN queries on these tables occasionally showing unexpected plan choices. This seems to happen because VACUUM sometimes fails to update relpages/reltuples for one of these single-page tables, due to bgwriter or checkpointer holding a pin on the lone page at just the wrong time. To ensure those values get set, insert explicit ANALYZE operations on these tables after we finish populating them. This doesn't seem to affect any other test cases, so it's a usable fix. Back-patch to v12. In principle the issue exists further back, but we have not seen it before v12, so I won't risk back-patching further. Discussion: https://postgr.es/m/24480.1569518042@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions