From 15eb1228800a35042ef318f941173aa8b89002d1 Mon Sep 17 00:00:00 2001 From: John Naylor Date: Tue, 17 Jan 2023 14:25:01 +0700 Subject: [PATCH] Remove redundant relkind check 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 2c0a969972..527c7651ab 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -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); /*