pgbench-hack40001.patch
text/plain
Filename: pgbench-hack40001.patch
Type: text/plain
Part: 1
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: context
| File | + | − |
|---|---|---|
| contrib/pgbench/pgbench.c | 2 | 0 |
*** a/contrib/pgbench/pgbench.c
--- b/contrib/pgbench/pgbench.c
***************
*** 809,814 **** top:
--- 809,816 ----
case PGRES_TUPLES_OK:
break; /* OK */
default:
+ if (strncmp("40001", PQresultErrorField(res, PG_DIAG_SQLSTATE), 5) == 0)
+ break;
fprintf(stderr, "Client %d aborted in state %d: %s",
st->id, st->state, PQerrorMessage(st->con));
PQclear(res);