Remove redundant relkind check
authorJohn Naylor <[email protected]>
Tue, 17 Jan 2023 07:25:01 +0000 (14:25 +0700)
committerJohn Naylor <[email protected]>
Tue, 17 Jan 2023 07:25:01 +0000 (14:25 +0700)
Ranier Vilela

Reviewed by Justin Pryzby
Discussion: https://www.postgresql.org/message-id/CAEudQAp2R2fbbi0OHHhv_n4%3DCh0t1VtjObR9YMqtGKHJ%2BfaUFQ%40mail.gmail.com

src/bin/pg_dump/pg_dump.c

index 2c0a969972949f8f17e7ef6c567c193370c034df..527c7651ab24a306c4518ef97aa4c96152d12e92 100644 (file)
@@ -15546,8 +15546,7 @@ dumpTableSchema(Archive *fout, const TableInfo *tbinfo)
        if (tbinfo->relkind == RELKIND_MATVIEW)
            append_depends_on_extension(fout, q, &tbinfo->dobj,
                                        "pg_catalog.pg_class",
-                                       tbinfo->relkind == RELKIND_MATVIEW ?
-                                       "MATERIALIZED VIEW" : "INDEX",
+                                       "MATERIALIZED VIEW",
                                        qualrelname);
 
        /*