Use unaligned output in another regression test query to reduce diff noise.

Use the unaligned/no rowcount output mode in a regression tests that
shows all built-in leakproof functions. Currently a new leakproof
function will often change the alignment of all existing functions,
making it hard to see the actual difference and creating unnecessary
patch conflicts.

Noticed while looking over a patch introducing new leakproof functions.
This commit is contained in:
Andres Freund
2014-06-03 12:19:18 +02:00
parent 19c9da1d96
commit 5eebb8d954
2 changed files with 243 additions and 232 deletions

View File

@ -107,11 +107,20 @@ CREATE FUNCTION functext_E_3(int) RETURNS bool LANGUAGE 'sql'
RESET SESSION AUTHORIZATION;
---
-- list of built-in leakproof functions
---
-- temporarily disable fancy output, so catalog changes create less diff noise
\a\t
SELECT proname, prorettype::regtype, proargtypes::regtype[]
FROM pg_proc JOIN pg_namespace ON pronamespace = pg_namespace.oid
WHERE nspname = 'pg_catalog' AND proleakproof ORDER BY proname;
-- restore normal output mode
\a\t
--
-- CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT
--