pgsql: Save redundant code for pseudotype I/O functions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Save redundant code for pseudotype I/O functions
Date: 2016-11-07 14:21:09
Message-ID: E1c3knN-0004HA-Q3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-11-07 14:54:20 pgsql: pg_rewing pg_upgrade: Fix translation markers
Previous Message Magnus Hagander 2016-11-07 14:07:32 pgsql: Fix handling of symlinked pg_stat_tmp and pg_replslot