fix whitespace

pull/7748/head
Mehmet Yilmaz 2024-11-14 18:44:39 +03:00
parent 65a5730611
commit fcd72d26d4
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,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
@ -36,7 +36,7 @@ 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;