Fix hard-coded relkind constants in assorted other files.
authorTom Lane <[email protected]>
Fri, 10 Mar 2017 04:36:44 +0000 (23:36 -0500)
committerTom Lane <[email protected]>
Fri, 10 Mar 2017 04:36:52 +0000 (23:36 -0500)
commit9c2635e26f6f4e34b3b606c0fc79d0e111953a74
treea9c715b65b8925d5ca16df366fe1d7cb91778224
parentfcd8d25d38b5f42ec4ae77a673813c2dc279ccf7
Fix hard-coded relkind constants in assorted other 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.

I think I've now gotten all the hard-coded references in C code.
Unfortunately there's no equally convenient way to parameterize
SQL files ...

Discussion: https://postgr.es/m/11145.1488931324@sss.pgh.pa.us
contrib/oid2name/oid2name.c
contrib/postgres_fdw/postgres_fdw.c
contrib/vacuumlo/vacuumlo.c
src/backend/utils/adt/xml.c
src/tools/findoidjoins/findoidjoins.c