In dumpTable, re-instate the skipping logic

Pretty sure I removed this based on some incorrect thinking that it was
no longer possible to reach this point for a table which will not be
dumped, but that's clearly wrong.

Pointed out on IRC by Erik Rijkers.
This commit is contained in:
Stephen Frost 2016-04-08 15:00:44 -04:00
parent 8b99edefca
commit 689f9a0588

View File

@ -14846,6 +14846,13 @@ dumpTable(Archive *fout, TableInfo *tbinfo)
DumpOptions *dopt = fout->dopt;
char *namecopy;
/*
* noop if we are not dumping anything about this table, or if we are
* doing a data-only dump
*/
if (!tbinfo->dobj.dump || dopt->dataOnly)
return;
if (tbinfo->relkind == RELKIND_SEQUENCE)
dumpSequence(fout, tbinfo);
else