Add convenience view to stats import test.

Nathan Bossart <nathan@postgresql.org>

Commit: 233bbdf031e4832a409e3028b45d709e7ddb93c9
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2026-03-13T20:04:10Z
Add convenience view to stats import test.

Presently, many statements in stats_import.sql select all columns
from the pg_stats system view.  A proposed follow-up commit would
add columns to this view (some of which are not stable across test
runs), breaking all of these tests.  This commit introduces a
convenience view for those statements so that future changes are
minimally disruptive.

Author: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Discussion: https://postgr.es/m/CADkLM%3DcoCVy92QkVUUTLdo5eO2bMDtwMrzRn_8miAhX%2BuPaqXg%40mail.gmail.com

Files

Discussion