Fix hard-coded relkind constants in assorted src/bin files.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/initdb/initdb.c | modified | +13 −4 |
| src/bin/pg_dump/pg_dump_sort.c | modified | +8 −6 |
| src/bin/pg_upgrade/info.c | modified | +3 −1 |
| src/bin/pg_upgrade/pg_upgrade.c | modified | +9 −2 |
| src/bin/pg_upgrade/version.c | modified | +6 −1 |
| src/bin/psql/command.c | modified | +3 −2 |
| src/bin/psql/tab-complete.c | modified | +31 −14 |
| src/bin/scripts/vacuumdb.c | modified | +8 −2 |
Discussion
- Bizarre choice of case for RELKIND_PARTITIONED_TABLE 12 messages · 2017-03-07 → 2017-03-11