aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Herrera <alvherre@alvh.no-ip.org>2025-04-03 17:34:25 +0200
committerÁlvaro Herrera <alvherre@alvh.no-ip.org>2025-04-03 17:34:25 +0200
commitf104192e52fe01592689c6a896fb29facf03bd12 (patch)
tree9e987403dd1384efe06ffee010b95802fe9648b3
parentb82e7eddb023ade0739002b3ef05939ea6937e57 (diff)
downloadpostgresql-f104192e52fe01592689c6a896fb29facf03bd12.tar.gz
postgresql-f104192e52fe01592689c6a896fb29facf03bd12.zip
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
-rw-r--r--src/bin/pg_dump/pg_dump.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 04c87ba8854..eef74f78271 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/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')