diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c index 7415f0d00fb..87207f7d83a 100644 --- a/src/bin/pg_dump/common.c +++ b/src/bin/pg_dump/common.c @@ -204,10 +204,6 @@ getSchemaData(int *numTablesPtr) write_msg(NULL, "reading table inheritance information\n"); inhinfo = getInherits(&numInherits); - if (g_verbose) - write_msg(NULL, "reading rewrite rules\n"); - getRules(&numRules); - /* * Identify extension member objects and mark them as not to be dumped. * This must happen after reading all objects that can be direct members @@ -242,6 +238,10 @@ getSchemaData(int *numTablesPtr) write_msg(NULL, "reading triggers\n"); getTriggers(tblinfo, numTables); + if (g_verbose) + write_msg(NULL, "reading rewrite rules\n"); + getRules(&numRules); + *numTablesPtr = numTables; return tblinfo; }