mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-12 09:27:04 +08:00
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:
@ -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
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user