pgsql: Refactor format_type APIs to be more modular

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor format_type APIs to be more modular
Date: 2018-02-17 22:16:22
Message-ID: E1enAmM-0004tu-Lt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor format_type APIs to be more modular

Introduce a new format_type_extended, with a flags bitmask argument that
can modify the default behavior. A few compatibility and readability
wrappers remain:
format_type_be
format_type_be_qualified
format_type_with_typemod
while format_type_with_typemod_qualified, which had a single caller, is
removed.

Author: Michael Paquier, some revisions by me
Discussion: 20180213035107(dot)GA2915(at)paquier(dot)xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a26116c6cbf4117e8efaa7cfc5bacc887f01517f

Modified Files
--------------
contrib/postgres_fdw/deparse.c | 10 +--
src/backend/utils/adt/format_type.c | 134 ++++++++++++++++++------------------
src/include/utils/builtins.h | 9 ++-
3 files changed, 81 insertions(+), 72 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2018-02-18 01:46:43 pgsql: Move function comment to the right place
Previous Message Alvaro Herrera 2018-02-17 16:33:34 pgsql: Mention trigger name in trigger test