From 51277d8b2a7e4d744350995a1e6a512ff3af3213 Mon Sep 17 00:00:00 2001 From: Mark Dilger Date: Sun, 31 May 2020 20:43:52 -0700 Subject: [PATCH v1] Code cleanup. Removing a duplicate check for RELKIND_PARTITIONED_INDEX. Essentially, an if (relkind == RELKIND_PARTITIONED_INDEX || ...) ... else if (relkind == RELKIND_PARTITIONED_INDEX || ...) ... statement. The duplication doesn't appear to do any harm, but I noticed it while refactoring some code, so I'm cleaning it up. --- src/bin/psql/describe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index c7639f6206..58a43425f7 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -2309,7 +2309,6 @@ describeOneTableDetails(const char *schemaname, tableinfo.relkind == RELKIND_MATVIEW || tableinfo.relkind == RELKIND_FOREIGN_TABLE || tableinfo.relkind == RELKIND_PARTITIONED_TABLE || - tableinfo.relkind == RELKIND_PARTITIONED_INDEX || tableinfo.relkind == RELKIND_TOASTVALUE) { /* Footer information about a table */ -- 2.21.1 (Apple Git-122.3)