postgres.git / summary / log / commit / refs

commit    f104192e52fe01592689c6a896fb29facf03bd12
Author:   Álvaro Herrera <alvherre@alvh.no-ip.org>
Date:     Thu Apr 03 15:34:25 2025 +0000
First released in: 18.0

    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


src/bin/pg_dump/pg_dump.c | 5 ----- 1 file changed, 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') [parent: b82e7eddb023]