Remove duplicate set of print_notnull
authorÁlvaro Herrera <[email protected]>
Thu, 3 Apr 2025 15:34:25 +0000 (17:34 +0200)
committerÁlvaro Herrera <[email protected]>
Thu, 3 Apr 2025 15:34:25 +0000 (17:34 +0200)
I inserted the second one by mistake in commit 14e87ffa5c54.

Reported-by: jian he <[email protected]>
Confirmed-by: Ashutosh Bapat <[email protected]>
Discussion: https://postgr.es/m/CACJufxFqckBFxPfCixHHbOr0zMLksviTj2m3o12-tErfx_PvTg@mail.gmail.com

src/bin/pg_dump/pg_dump.c

index 04c87ba8854cc7de8b8ae25eccb08649fa99e41f..eef74f78271091da0511603ad35c0c88e4da1ed6 100644 (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')