]> granicus.if.org Git - postgresql/commit
Fix hard-coded relkind constants in assorted src/bin files.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Mar 2017 03:42:16 +0000 (22:42 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Mar 2017 03:42:16 +0000 (22:42 -0500)
commitfcd778eb703c154c0fbba249e17c21b7ae4de19b
tree2e303735853b29f698314409403a0ae795e90f1a
parent15bb93e28e49fdf4f28d509c07d1527886acb3e2
Fix hard-coded relkind constants in assorted src/bin files.

Although it's reasonable to expect that most of these constants will
never change, that does not make it good programming style to hard-code
the value rather than using the RELKIND_FOO macros.

Discussion: https://postgr.es/m/11145.1488931324@sss.pgh.pa.us
src/bin/initdb/initdb.c
src/bin/pg_dump/pg_dump_sort.c
src/bin/pg_upgrade/info.c
src/bin/pg_upgrade/pg_upgrade.c
src/bin/pg_upgrade/version.c
src/bin/psql/command.c
src/bin/psql/tab-complete.c
src/bin/scripts/vacuumdb.c