pgsql: Fix hard-coded relkind constants in psql/describe.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix hard-coded relkind constants in psql/describe.c.
Date: 2017-03-10 01:46:15
Message-ID: E1cm9dH-000809-8n@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix hard-coded relkind constants in psql/describe.c.

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/395bfaae8e786eb17fc9dd79e4636f97c9d9b820

Modified Files
--------------
src/bin/psql/describe.c | 203 ++++++++++++++++++++++++++++--------------------
1 file changed, 120 insertions(+), 83 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-03-10 01:59:06 Re: [COMMITTERS] pgsql: Fix hard-coded relkind constants in pg_dump.c.
Previous Message Stephen Frost 2017-03-10 01:06:53 pgsql: pgstattuple: Fix typo partitiond -> partitioned