pgsql: Save redundant code for pseudotype I/O functions - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Save redundant code for pseudotype I/O functions
Date
Msg-id E1c3knN-0004HA-Q3@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Save redundant code for pseudotype I/O functions

Use a macro to generate the in and out functions for pseudotypes that
reject all input and output, saving many lines of redundant code.
Parameterize the error messages to reduce translatable strings.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a5954de1051a779f1460426ab88d142f8790f18d

Modified Files
--------------
src/backend/utils/adt/pseudotypes.c | 346 +++++-------------------------------
1 file changed, 45 insertions(+), 301 deletions(-)


pgsql-committers by date:

Previous
From: Magnus Hagander
Date:
Subject: pgsql: Fix handling of symlinked pg_stat_tmp and pg_replslot
Next
From: Peter Eisentraut
Date:
Subject: pgsql: pg_rewing pg_upgrade: Fix translation markers