fix_array_access_pg_dump.patch

application/octet-stream

Filename: fix_array_access_pg_dump.patch
Type: application/octet-stream
Part: 0
Message: Fix array access (src/bin/pg_dump/pg_dump.c)

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/bin/pg_dump/pg_dump.c 1 1
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index a8c141b689..404f5d8675 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -9397,7 +9397,7 @@ determineNotNullFlags(Archive *fout, PGresult *res, int r,
 			 */
 			if (dopt->binary_upgrade &&
 				!tbinfo->ispartition &&
-				!tbinfo->notnull_islocal)
+				!tbinfo->notnull_islocal[j])
 			{
 				tbinfo->notnull_constrs[j] =
 					pstrdup(PQgetvalue(res, r, i_notnull_name));