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:
parent
19c9da1d96
commit
5eebb8d954
|
@ -149,12 +149,14 @@ CREATE FUNCTION functext_E_3(int) RETURNS bool LANGUAGE 'sql'
|
|||
LEAKPROOF AS 'SELECT $1 < 200'; -- failed
|
||||
ERROR: only superuser can define a leakproof function
|
||||
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;
|
||||
proname | prorettype | proargtypes
|
||||
----------------+------------+---------------------------------------------------------------------
|
||||
abstimeeq|boolean|[0:1]={abstime,abstime}
|
||||
abstimege|boolean|[0:1]={abstime,abstime}
|
||||
abstimegt|boolean|[0:1]={abstime,abstime}
|
||||
|
@ -383,8 +385,8 @@ SELECT proname, prorettype::regtype, proargtypes::regtype[]
|
|||
varbitlt|boolean|[0:1]={"bit varying","bit varying"}
|
||||
varbitne|boolean|[0:1]={"bit varying","bit varying"}
|
||||
xideq|boolean|[0:1]={xid,xid}
|
||||
(228 rows)
|
||||
|
||||
-- restore normal output mode
|
||||
\a\t
|
||||
--
|
||||
-- CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT
|
||||
--
|
||||
|
|
|
@ -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
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue