Fix incorrect pg_proc.proallargtypes entries for two built-in functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Apr 2014 01:21:05 +0000 (21:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Apr 2014 01:21:05 +0000 (21:21 -0400)
commita0f9358149b78c62871a0b7d3c167b78f9b2c77e
tree4dc474a84c3bf443ab9bc8a9338b8a074804ff3d
parentf0fedfe82c8adea78354652d67c027a1a8fbce88
Fix incorrect pg_proc.proallargtypes entries for two built-in functions.

pg_sequence_parameters() and pg_identify_object() have had incorrect
proallargtypes entries since 9.1 and 9.3 respectively.  This was mostly
masked by the correct information in proargtypes, but a few operations
such as pg_get_function_arguments() (and thus psql's \df display) would
show the wrong data types for these functions' input parameters.

In HEAD, fix the wrong info, bump catversion, and add an opr_sanity
regression test to catch future mistakes of this sort.

In the back branches, just fix the wrong info so that installations
initdb'd with future minor releases will have the right data.  We
can't force an initdb, and it doesn't seem like a good idea to add
a regression test that will fail on existing installations.

Andres Freund
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/opr_sanity.sql