Remove duplicate set of print_notnull

I inserted the second one by mistake in commit 14e87ffa5c.

Reported-by: jian he <jian.universality@gmail.com>
Confirmed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://postgr.es/m/CACJufxFqckBFxPfCixHHbOr0zMLksviTj2m3o12-tErfx_PvTg@mail.gmail.com
pull/210/head
Álvaro Herrera 5 months ago
parent b82e7eddb0
commit f104192e52
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
  1. 5
      src/bin/pg_dump/pg_dump.c

@ -16681,11 +16681,6 @@ dumpTableSchema(Archive *fout, const TableInfo *tbinfo)
tbinfo->attrdefs[j]->adef_expr);
}
print_notnull = (tbinfo->notnull_constrs[j] != NULL &&
(tbinfo->notnull_islocal[j] ||
dopt->binary_upgrade ||
tbinfo->ispartition));
if (print_notnull)
{
if (tbinfo->notnull_constrs[j][0] == '\0')

Loading…
Cancel
Save