pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
To: Stephen Frost <sfrost@snowman.net>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Logical replication support for initial data copy
Date: Thu, 23 Mar 2017 15:25:14 +0100
Message-ID: <8573bded-a414-b184-93cd-5952800ce3f8@2ndquadrant.com> (raw)
In-Reply-To: <20170323141735.GS9812@tamriel.snowman.net>
References: <E1cr2L6-0004HE-H4@gemulon.postgresql.org>
	<1384e2bb-64b4-2e62-4ac3-4b873a059799@2ndquadrant.com>
	<d033b1da-9bb6-c39c-5a80-c88ebe6b10a8@2ndquadrant.com>
	<20170323141735.GS9812@tamriel.snowman.net>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 23/03/17 15:17, Stephen Frost wrote:
> Petr,
> 
> * Petr Jelinek (petr.jelinek@2ndquadrant.com) wrote:
>> On 23/03/17 14:47, Petr Jelinek wrote:
>>> I am looking into buildfarm failures.
>>>
>>> Looks like the clang issue (mylodon, longfin) is because we are missing
>>> extern in include/replication/worker_internal.h for ApplyCacheContext.
>>>
>>> Still analyzing the rest.
>>
>> Ah missing fields in copy/equal function for AlterSubscriptionStmt.
>>
>> Attached patch adds the above mentioned extern and fixes the copy and
>> equal functions.
> 
> Pretty sure I saw a complaint about a trailing comma in a struct or enum
> too..
> 

Ah, missed that in the wall of text, thanks, fixed that too.

-- 
  Petr Jelinek                  http://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services

-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Attachments:

logical-replication-copy-patch-fixesv2.patch (text/x-patch, 2.0K) download diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 67c7de6..93d4eb2 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -4450,7 +4450,10 @@ _copyAlterSubscriptionStmt(const AlterSubscriptionStmt *from) { AlterSubscriptionStmt *newnode = makeNode(AlterSubscriptionStmt); + COPY_SCALAR_FIELD(kind); COPY_STRING_FIELD(subname); + COPY_STRING_FIELD(conninfo); + COPY_NODE_FIELD(publication); COPY_NODE_FIELD(options); return newnode; diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 4d8e7fe..6b40b56 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -2199,7 +2199,10 @@ static bool _equalAlterSubscriptionStmt(const AlterSubscriptionStmt *a, const AlterSubscriptionStmt *b) { + COMPARE_SCALAR_FIELD(kind); COMPARE_STRING_FIELD(subname); + COMPARE_STRING_FIELD(conninfo); + COMPARE_NODE_FIELD(publication); COMPARE_NODE_FIELD(options); return true; diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h index fb55c30..cc31bc6 100644 --- a/src/include/replication/walreceiver.h +++ b/src/include/replication/walreceiver.h @@ -175,7 +175,7 @@ typedef enum WALRCV_OK_TUPLES, /* Query returned tuples. */ WALRCV_OK_COPY_IN, /* Query started COPY FROM. */ WALRCV_OK_COPY_OUT, /* Query started COPY TO. */ - WALRCV_OK_COPY_BOTH, /* Query started COPY BOTH replication protocol. */ + WALRCV_OK_COPY_BOTH /* Query started COPY BOTH replication protocol. */ } WalRcvExecStatus; /* diff --git a/src/include/replication/worker_internal.h b/src/include/replication/worker_internal.h index bf96d34..5bebca3 100644 --- a/src/include/replication/worker_internal.h +++ b/src/include/replication/worker_internal.h @@ -46,7 +46,7 @@ typedef struct LogicalRepWorker } LogicalRepWorker; /* Memory context for cached variables in apply worker. */ -MemoryContext ApplyCacheContext; +extern MemoryContext ApplyCacheContext; /* libpqreceiver connection */ extern struct WalReceiverConn *wrconn;

view thread (10+ messages)  latest in thread

Message-ID: <8573bded-a414-b184-93cd-5952800ce3f8@2ndquadrant.com>
Permalink:  ../8573bded-a414-b184-93cd-5952800ce3f8@2ndquadrant.com/
Also on:    postgresql.org/message-id/8573bded-a414-b184-93cd-5952800ce3f8@2ndquadrant.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: petr.jelinek@2ndquadrant.com, sfrost@snowman.net, peter_e@gmx.net
  Subject: Re: pgsql: Logical replication support for initial data copy
  In-Reply-To: <8573bded-a414-b184-93cd-5952800ce3f8@2ndquadrant.com>
  References: <E1cr2L6-0004HE-H4@gemulon.postgresql.org> <1384e2bb-64b4-2e62-4ac3-4b873a059799@2ndquadrant.com> <d033b1da-9bb6-c39c-5a80-c88ebe6b10a8@2ndquadrant.com> <20170323141735.GS9812@tamriel.snowman.net> <8573bded-a414-b184-93cd-5952800ce3f8@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox