postgresql/contrib/postgres_fdw
Tom Lane 8f72a57048 Fix format_type() to restore its old behavior.
Commit a26116c6c accidentally changed the behavior of the SQL format_type()
function while refactoring.  For the reasons explained in that function's
comment, a NULL typemod argument should behave differently from a -1
argument.  Since we've managed to break this, add a regression test
memorializing the intended behavior.

In passing, be consistent about the type of the "flags" parameter.

Noted by Rushabh Lathia, though I revised the patch some more.

Discussion: https://postgr.es/m/CAGPqQf3RB2q-d2Awp_-x-Ur6aOxTUwnApt-vm-iTtceZxYnePg@mail.gmail.com
2018-03-01 11:37:46 -05:00
..
expected postgres_fdw: Third attempt to stabilize regression tests. 2018-02-28 10:15:17 -05:00
sql postgres_fdw: Third attempt to stabilize regression tests. 2018-02-28 10:15:17 -05:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
deparse.c Fix format_type() to restore its old behavior. 2018-03-01 11:37:46 -05:00
Makefile Allow postgres_fdw to ship extension funcs/operators for remote execution. 2015-11-03 18:42:18 -05:00
option.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c postgres_fdw: Fix interaction of PHVs with child joins. 2018-02-22 10:03:14 -05:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h postgres_fdw: Push down UPDATE/DELETE joins to remote servers. 2018-02-07 15:34:30 -05:00
shippable.c Update copyright for 2018 2018-01-02 23:30:12 -05:00