Temporarily install debugging in partition_prune test
authorDavid Rowley <drowley@postgresql.org>
Thu, 21 Mar 2024 08:21:05 +0000 (21:21 +1300)
committerDavid Rowley <drowley@postgresql.org>
Thu, 21 Mar 2024 08:21:05 +0000 (21:21 +1300)
commit1db689715d44276407dc4d6fadbc11da8d391bd9
tree981fa0206533cb8496cd64d82115903f00b521d0
parent6185c9737cf48c9540782d88f12bd2912d6ca1cc
Temporarily install debugging in partition_prune test

The buildfarm animal parula has been sporadically failing in the
partition_prune test for the past week or so.  It appears like an
auto-vacuum or auto-analyze has run on one of the partitions of the "ab"
table, causing the plan to change.  This is unexpected as the table is
empty.

Here we install some telemetry to find out if this is the case.  This
also joins in pg_index to see if something has gone wrong with the index
which could result in the planner being unable to use that index.

We can revert this once we've figured out the cause of the plan
instability.

Reported-by: Tom Lane
Investigation-by: Tom Lane
Discussion: https://postgr.es/m/4009739.1710878318%40sss.pgh.pa.us
src/test/regress/expected/partition_prune.out
src/test/regress/sql/partition_prune.sql