mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
pg_dump: Message style improvements
This commit is contained in:
parent
a029d2cf42
commit
363ac78aee
@ -6078,7 +6078,7 @@ getOwnedSeqs(Archive *fout, TableInfo tblinfo[], int numTables)
|
|||||||
|
|
||||||
owning_tab = findTableByOid(seqinfo->owning_tab);
|
owning_tab = findTableByOid(seqinfo->owning_tab);
|
||||||
if (owning_tab == NULL)
|
if (owning_tab == NULL)
|
||||||
exit_horribly(NULL, "failed sanity check, parent table OID %u of sequence OID %u not found\n",
|
exit_horribly(NULL, "failed sanity check, parent table with OID %u of sequence with OID %u not found\n",
|
||||||
seqinfo->owning_tab, seqinfo->dobj.catId.oid);
|
seqinfo->owning_tab, seqinfo->dobj.catId.oid);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -6768,7 +6768,7 @@ getRules(Archive *fout, int *numRules)
|
|||||||
ruletableoid = atooid(PQgetvalue(res, i, i_ruletable));
|
ruletableoid = atooid(PQgetvalue(res, i, i_ruletable));
|
||||||
ruleinfo[i].ruletable = findTableByOid(ruletableoid);
|
ruleinfo[i].ruletable = findTableByOid(ruletableoid);
|
||||||
if (ruleinfo[i].ruletable == NULL)
|
if (ruleinfo[i].ruletable == NULL)
|
||||||
exit_horribly(NULL, "failed sanity check, parent table OID %u of pg_rewrite entry OID %u not found\n",
|
exit_horribly(NULL, "failed sanity check, parent table with OID %u of pg_rewrite entry with OID %u not found\n",
|
||||||
ruletableoid, ruleinfo[i].dobj.catId.oid);
|
ruletableoid, ruleinfo[i].dobj.catId.oid);
|
||||||
ruleinfo[i].dobj.namespace = ruleinfo[i].ruletable->dobj.namespace;
|
ruleinfo[i].dobj.namespace = ruleinfo[i].ruletable->dobj.namespace;
|
||||||
ruleinfo[i].dobj.dump = ruleinfo[i].ruletable->dobj.dump;
|
ruleinfo[i].dobj.dump = ruleinfo[i].ruletable->dobj.dump;
|
||||||
@ -16101,7 +16101,7 @@ dumpSequence(Archive *fout, TableInfo *tbinfo)
|
|||||||
TableInfo *owning_tab = findTableByOid(tbinfo->owning_tab);
|
TableInfo *owning_tab = findTableByOid(tbinfo->owning_tab);
|
||||||
|
|
||||||
if (owning_tab == NULL)
|
if (owning_tab == NULL)
|
||||||
exit_horribly(NULL, "failed sanity check, parent table OID %u of sequence OID %u not found\n",
|
exit_horribly(NULL, "failed sanity check, parent table with OID %u of sequence with OID %u not found\n",
|
||||||
tbinfo->owning_tab, tbinfo->dobj.catId.oid);
|
tbinfo->owning_tab, tbinfo->dobj.catId.oid);
|
||||||
|
|
||||||
if (owning_tab->dobj.dump & DUMP_COMPONENT_DEFINITION)
|
if (owning_tab->dobj.dump & DUMP_COMPONENT_DEFINITION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user