diff --git a/citus-tools b/citus-tools new file mode 160000 index 000000000..3376bd684 --- /dev/null +++ b/citus-tools @@ -0,0 +1 @@ +Subproject commit 3376bd6845f0614908ed304f5033bd644c82d3bf diff --git a/src/test/regress/expected/pg13_propagate_statistics.out b/src/test/regress/expected/pg13_propagate_statistics.out index e714dfdf1..6013564ec 100644 --- a/src/test/regress/expected/pg13_propagate_statistics.out +++ b/src/test/regress/expected/pg13_propagate_statistics.out @@ -27,7 +27,7 @@ ALTER STATISTICS s3 SET STATISTICS 46; -- for stxstattarget, re-interpret -1 as null to avoid adding another test output for pg < 17 -- Changed stxstattarget in pg_statistic_ext to use nullable representation, removing explicit -1 for default statistics target in PostgreSQL 17. -- https://github.com/postgres/postgres/commit/012460ee93c304fbc7220e5b55d9d0577fc766ab -SELECT +SELECT nullif(stxstattarget, -1) AS stxstattarget, stxrelid::regclass FROM pg_statistic_ext @@ -37,12 +37,12 @@ WHERE stxnamespace IN ( WHERE nspname IN ('statistics''TestTarget') ) AND stxname SIMILAR TO '%\_\d+' -ORDER BY +ORDER BY nullif(stxstattarget, -1) IS NULL DESC, -- Make sure null values are handled consistently nullif(stxstattarget, -1) NULLS FIRST, -- Use NULLS FIRST to ensure consistent placement of nulls stxrelid::regclass ASC; stxstattarget | stxrelid ---------------------------------------- +--------------------------------------------------------------------- | "statistics'TestTarget".t1_980000 | "statistics'TestTarget".t1_980002 | "statistics'TestTarget".t1_980004