/rtmp/label
text/x-diff
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/backend/replication/walsender.c | 0 | 0 |
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
new file mode 100644
index af3c95a..470e6d1
*** a/src/backend/replication/walsender.c
--- b/src/backend/replication/walsender.c
*************** WalSndGetStateString(WalSndState state)
*** 1350,1362 ****
switch (state)
{
case WALSNDSTATE_STARTUP:
! return "STARTUP";
case WALSNDSTATE_BACKUP:
! return "BACKUP";
case WALSNDSTATE_CATCHUP:
! return "CATCHUP";
case WALSNDSTATE_STREAMING:
! return "STREAMING";
}
return "UNKNOWN";
}
--- 1350,1362 ----
switch (state)
{
case WALSNDSTATE_STARTUP:
! return "startup";
case WALSNDSTATE_BACKUP:
! return "backup";
case WALSNDSTATE_CATCHUP:
! return "catchup";
case WALSNDSTATE_STREAMING:
! return "streaming";
}
return "UNKNOWN";
}
*************** pg_stat_get_wal_senders(PG_FUNCTION_ARGS
*** 1501,1511 ****
* informational, not different from priority.
*/
if (sync_priority[i] == 0)
! values[7] = CStringGetTextDatum("ASYNC");
else if (i == sync_standby)
! values[7] = CStringGetTextDatum("SYNC");
else
! values[7] = CStringGetTextDatum("POTENTIAL");
}
tuplestore_putvalues(tupstore, tupdesc, values, nulls);
--- 1501,1511 ----
* informational, not different from priority.
*/
if (sync_priority[i] == 0)
! values[7] = CStringGetTextDatum("async");
else if (i == sync_standby)
! values[7] = CStringGetTextDatum("sync");
else
! values[7] = CStringGetTextDatum("potential");
}
tuplestore_putvalues(tupstore, tupdesc, values, nulls);