Re: block-level incremental backup
Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-04-10T20:46:03Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Don't call data type input functions in GUC check hooks
- 21f428ebde39 12.0 cited
On Wed, 10 Apr 2019 14:38:43 -0400 Robert Haas <robertmhaas@gmail.com> wrote: > On Wed, Apr 10, 2019 at 2:21 PM Jehan-Guillaume de Rorthais > <jgdr@dalibo.com> wrote: > > In my current design, the scan is done backward from end to start and I > > keep all the records appearing after the last occurrence of their > > respective FPI. > > Oh, interesting. That seems like it would require pretty major > surgery on the WAL stream. Indeed. Presently, the surgery in my code is replacing redundant xlogrecord with noop. I have now to deal with muti-blocks records. So far, I tried to mark non-needed block with !BKPBLOCK_HAS_DATA and made a simple patch in core to ignore such marked blocks, but it doesn't play well with dependency between xlogrecord, eg. during UPDATE. So my plan is to rewrite them to remove non-needed blocks using eg. XLOG_FPI. As I wrote, this is mainly an hobby project right now for my own education. Not sure where it leads me, but I learn a lot while working on it.