v1-0001-postgres_fdw-fix-trailing-comma.patch

application/octet-stream

Filename: v1-0001-postgres_fdw-fix-trailing-comma.patch
Type: application/octet-stream
Part: 0
Message: Bug: trailing comma syntax error in postgres_fdw fetch_attstats()

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
Series: patch v1-0001
File+
contrib/postgres_fdw/postgres_fdw.c 1 1
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c
index 0f20f38c..7a770472 100644
--- a/contrib/postgres_fdw/postgres_fdw.c
+++ b/contrib/postgres_fdw/postgres_fdw.c
@@ -5876,7 +5876,7 @@ fetch_attstats(PGconn *conn, int server_version_num,
 							   " range_bounds_histogram");
 	else
 		appendStringInfoString(&sql,
-							   " NULL, NULL, NULL,");
+							   " NULL, NULL, NULL");
 
 	appendStringInfoString(&sql,
 						   " FROM pg_catalog.pg_stats"