Fix hard-coded relkind constants in assorted other files.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/oid2name/oid2name.c | modified | +12 −5 |
| contrib/postgres_fdw/postgres_fdw.c | modified | +6 −1 |
| contrib/vacuumlo/vacuumlo.c | modified | +3 −1 |
| src/backend/utils/adt/xml.c | modified | +15 −2 |
| src/tools/findoidjoins/findoidjoins.c | modified | +12 −8 |
Discussion
- Bizarre choice of case for RELKIND_PARTITIONED_TABLE 12 messages · 2017-03-07 → 2017-03-11