logseg2segno_v1.patch

application/octet-stream

Filename: logseg2segno_v1.patch
Type: application/octet-stream
Part: 0
Message: Re: Regarding WAL Format Changes

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
Series: patch v1
File+
src/backend/access/transam/xlog.c 2 0
*** a/src/backend/access/transam/xlog.c
--- b/src/backend/access/transam/xlog.c
***************
*** 2588,2598 **** XLogFileCopy(XLogSegNo destsegno, TimeLineID srcTLI, XLogSegNo srcsegno)
   *
   * tmppath: initial name of file to install.  It will be renamed into place.
   *
!  * find_free: if TRUE, install the new segment at the first empty log/seg
   * number at or after the passed numbers.  If FALSE, install the new segment
   * exactly where specified, deleting any existing segment file there.
   *
!  * *max_advance: maximum number of log/seg slots to advance past the starting
   * point.  Fail if no free slot is found in this range.  On return, reduced
   * by the number of slots skipped over.  (Irrelevant, and may be NULL,
   * when find_free is FALSE.)
--- 2588,2598 ----
   *
   * tmppath: initial name of file to install.  It will be renamed into place.
   *
!  * find_free: if TRUE, install the new segment at the first empty segno
   * number at or after the passed numbers.  If FALSE, install the new segment
   * exactly where specified, deleting any existing segment file there.
   *
!  * *max_advance: maximum number of segno slots to advance past the starting
   * point.  Fail if no free slot is found in this range.  On return, reduced
   * by the number of slots skipped over.  (Irrelevant, and may be NULL,
   * when find_free is FALSE.)