Re: Updated version of pg_receivexlog - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Updated version of pg_receivexlog
Date
Msg-id CABUevEwiRd+Ez9mgf=muesoiKs52pFVrpEdQjSJCnR80hM+Yog@mail.gmail.com
Whole thread Raw
In response to Re: Updated version of pg_receivexlog  (Jaime Casanova <jaime@2ndquadrant.com>)
List pgsql-hackers
On Wed, Sep 28, 2011 at 09:30, Jaime Casanova <jaime@2ndquadrant.com> wrote:
> On Wed, Sep 28, 2011 at 1:38 AM, Jaime Casanova <jaime@2ndquadrant.com> wrote:
>> On Tue, Aug 16, 2011 at 9:32 AM, Magnus Hagander <magnus@hagander.net> wrote:
>>> Here's an updated version of pg_receivexlog, that should now actually
>>> work (it previously failed miserably when a replication record crossed
>>> a WAL file boundary - something which I at the time could not properly
>>> reproduce, but when I restarted my work on it now could easily
>>> reproduce every time :D).
>>>
>>> It also contains an update to pg_basebackup that allows it to stream
>>> the transaction log in the background while the backup is running,
>>> thus reducing the need for wal_keep_segments (if the client can keep
>>> up, it should eliminate the need completely).
>>>
>>
>> reviewing this...
>>
>
> btw, executing 'make world' with this patch gives me this error (seems
> like an entry is missing in doc/src/sgml/ref/allfiles.sgml):
>
> jade:reference.sgml:223:4:E: general entity "pgReceivexlog" not
> defined and no default entity

Ugh, how did I miss that. You need this:

diff --git a/doc/src/sgml/ref/allfiles.sgml b/doc/src/sgml/ref/allfiles.sgml
index 8a8616b..382d297 100644
--- a/doc/src/sgml/ref/allfiles.sgml
+++ b/doc/src/sgml/ref/allfiles.sgml
@@ -172,6 +172,7 @@ Complete list of usable sgml source files in this directory.<!ENTITY pgCtl              SYSTEM
"pg_ctl-ref.sgml"><!ENTITYpgDump             SYSTEM "pg_dump.sgml"><!ENTITY pgDumpall          SYSTEM
"pg_dumpall.sgml">
+<!ENTITY pgReceivexlog      SYSTEM "pg_receivexlog.sgml"><!ENTITY pgResetxlog        SYSTEM
"pg_resetxlog.sgml"><!ENTITYpgRestore          SYSTEM "pg_restore.sgml"><!ENTITY postgres           SYSTEM
"postgres-ref.sgml">



I think I broke it in a merge at some point..
--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: feature request: auto savepoint for interactive psql when in transaction.
Next
From: Gurjeet Singh
Date:
Subject: Re: feature request: auto savepoint for interactive psql when in transaction.