Remove duplicate set of print_notnull

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

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
This commit is contained in:
Álvaro Herrera 2025-04-03 17:34:25 +02:00
parent b82e7eddb0
commit f104192e52
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE

View File

@ -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')