Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cr3TQ-0002LW-Qw for pgsql-committers@arkaria.postgresql.org; Thu, 23 Mar 2017 14:12:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cr3TQ-0006QX-AH for pgsql-committers@arkaria.postgresql.org; Thu, 23 Mar 2017 14:12:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cr3TP-0006Pz-G1 for pgsql-committers@postgresql.org; Thu, 23 Mar 2017 14:12:19 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cr3TM-0004DU-Dz for pgsql-committers@postgresql.org; Thu, 23 Mar 2017 14:12:18 +0000 Received: by mail-wm0-x234.google.com with SMTP id t189so64365232wmt.1 for ; Thu, 23 Mar 2017 07:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=OWG7SSHiq3ZRhxbREjE/WHp3P1WYq9l0DKr7Sj0kt4s=; b=o7DVXgcBz/KGbhpeqNhrAEl9GJ9EjFepJ3qi/IdfqKKjib+FB0kMMALB17q/9du8pl A8jS1Him5weUQBuSO5CJOrk26vwnQ9eAXQtIGiNzZv/wAbZQGMk9nDvJJIWGNMHKPF3J tpokobz+jLX1mBHgtEZDKBBwDBMc+bxcMakXx5Xu3EXBXwV/weTMscuHyzuYYL5jKfCr Eo5qUuypvydsL5FFLMI4DIPmCRLIMtX2V3F9qtUo6QLGh62dwgauEwAnhl3TfKycOEnG 3h2xx5qrBysaPwd6wBpFwIGTYzPEVYgtWuMtvVHJIiQCXIewAtFDPDJullSBaym2Y2sf 0H4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=OWG7SSHiq3ZRhxbREjE/WHp3P1WYq9l0DKr7Sj0kt4s=; b=KJvwbCINtWSaugg8jmFvRM5cjBCzlck+kOzX0jmlKFCCNmFXi0uA7NSvBeBrZ7zMxA 1t6iltxxd/HQx83i0JEcpbKy+rt0HopWipe7/a35lx544Tlvpu1BOI/0O5d0K3mOTl8o NaIzTXgwmZclZq6OLE5HRWxW74flqaMMQwvZynCdCqxJjoYHuadbRte34meFAgmjTJNC NN64ku6D2nwS8csKg84ahJhaYkzHVkMy+K4yL5HV722wMwxo0Lerhhiry9zWzVBUsr9J DQFKPLWpvzPeQDvXkZvQFD3IwcZgaWkh9LYxrESZ8DnQ7YYz+qq1upx0FGn/Y18ONFKP KhwA== X-Gm-Message-State: AFeK/H1rIGcq2RmwynTagtv76Ozq1swGikI9qO2feMdulay38uUb7X47498aAFf6rSa6sxmRP7jY0RwRqEvTSVHHer9L/g6rfv3D5416sVKkwG+oW6bYCeUckDAJIEkZ1bm80IgMhkAy/5bqe+U6KvKMCaAyTFU72A5uZ1plcbLA6pjXKHK8DWKt1nUkzISRhYqLlhEJiI22dpDr X-Received: by 10.28.73.196 with SMTP id w187mr3017504wma.5.1490278334922; Thu, 23 Mar 2017 07:12:14 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id b17sm4478903wma.33.2017.03.23.07.12.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Mar 2017 07:12:13 -0700 (PDT) Subject: Re: pgsql: Logical replication support for initial data copy To: Peter Eisentraut , pgsql-committers@postgresql.org References: <1384e2bb-64b4-2e62-4ac3-4b873a059799@2ndquadrant.com> From: Petr Jelinek Message-ID: Date: Thu, 23 Mar 2017 15:12:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1384e2bb-64b4-2e62-4ac3-4b873a059799@2ndquadrant.com> Content-Type: multipart/mixed; boundary="------------1C4AF01C6E30D743C81515A9" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org This is a multi-part message in MIME format. --------------1C4AF01C6E30D743C81515A9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --------------1C4AF01C6E30D743C81515A9 Content-Type: text/x-patch; name="logical-replication-copy-patch-fixes.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="logical-replication-copy-patch-fixes.patch" 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/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; --------------1C4AF01C6E30D743C81515A9 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers --------------1C4AF01C6E30D743C81515A9--