Re: Very small patch for decode.c - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Very small patch for decode.c
Date
Msg-id CAB7nPqRJYC0kJtwKY0CjNX-zUgXjc7zLDGOGv5aatUUnJJxeJg@mail.gmail.com
Whole thread Raw
In response to Very small patch for decode.c  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
On Thu, Mar 31, 2016 at 4:34 AM, Konstantin Knizhnik
<k.knizhnik@postgrespro.ru> wrote:
> diff --git a/src/backend/replication/logical/decode.c
> b/src/backend/replication/logical/decode.c
> index 2380ea2..a992662 100644
> --- a/src/backend/replication/logical/decode.c
> +++ b/src/backend/replication/logical/decode.c
> @@ -488,7 +488,7 @@ DecodeCommit(LogicalDecodingContext *ctx,
> XLogRecordBuffer *buf,
>  {
>         XLogRecPtr      origin_lsn = InvalidXLogRecPtr;
>         TimestampTz     commit_time = parsed->xact_time;
> -       XLogRecPtr      origin_id = XLogRecGetOrigin(buf->record);
> +       RepOriginId     origin_id = XLogRecGetOrigin(buf->record);
>         int                     i;

Good catch!
-- 
Michael



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Publish autovacuum informations
Next
From: Michael Paquier
Date:
Subject: Re: pg_xlogdump fails to handle WAL file with multi-page XLP_FIRST_IS_CONTRECORD data