Refactor format_type APIs to be more modular

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: a26116c6cbf4117e8efaa7cfc5bacc887f01517f
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2018-02-17T22:02:15Z
Releases: 11.0
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.GA2915@paquier.xyz

Files

PathChange+/−
contrib/postgres_fdw/deparse.c modified +6 −4
src/backend/utils/adt/format_type.c modified +67 −67
src/include/utils/builtins.h modified +8 −1