aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-03-01 11:37:46 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2018-03-01 11:37:46 -0500
commit8f72a5704854d292065886eb47ba18fbd504113e (patch)
tree5abf1c9c9de417cf9830fd9890a80e124bbc0236 /src/backend/access/gist/gistvacuum.c
parent1437824564f47e8e7641e98958a08c1544b6b8f4 (diff)
downloadpostgresql-8f72a5704854d292065886eb47ba18fbd504113e.tar.gz
postgresql-8f72a5704854d292065886eb47ba18fbd504113e.zip
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
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions