diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 6cbefac250..049c9cdfd7 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -3360,15 +3360,6 @@ getPublications(Archive *fout) ntups = PQntuples(res); - if (ntups == 0) - { - /* - * There are no publications defined. Clean up and return. - */ - PQclear(res); - return; - } - i_tableoid = PQfnumber(res, "tableoid"); i_oid = PQfnumber(res, "oid"); i_pubname = PQfnumber(res, "pubname"); @@ -3637,15 +3628,6 @@ getSubscriptions(Archive *fout) ntups = PQntuples(res); - if (ntups == 0) - { - /* - * There are no subscriptions defined. Clean up and return. - */ - PQclear(res); - return; - } - i_tableoid = PQfnumber(res, "tableoid"); i_oid = PQfnumber(res, "oid"); i_subname = PQfnumber(res, "subname");