Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNkC7-0004Mq-1W for pgsql-committers@arkaria.postgresql.org; Fri, 16 Nov 2018 19:54:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gNkC5-0008ID-Ah for pgsql-committers@arkaria.postgresql.org; Fri, 16 Nov 2018 19:54:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNkC5-0008I6-2H for pgsql-committers@lists.postgresql.org; Fri, 16 Nov 2018 19:54:21 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNkBx-0000VD-SZ for pgsql-committers@lists.postgresql.org; Fri, 16 Nov 2018 19:54:20 +0000 Received: by mail-qk1-x741.google.com with SMTP id 189so39362820qkj.8 for ; Fri, 16 Nov 2018 11:54:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=MErN5ZD04UvmYCnMRlaL3xeMx2QZBHVnG+TqIfnIP/M=; b=HJ5bfoUCb4j88oH4rr6NMWTj5noFDB3DjJLsa3yMEj+/lOxM4idSw2AIArX96OahLZ UAS4xW7U54nxLGFMfTWITosLqBjrQ/v4fys/bShyretdaqsXkvwHqKsbo0tnSdv/T61/ TqJz0d8r5Kt2hWaod6cGq0ZRDK4cCs/+QomS/v6aFjGlmzrYuqzSkYKZapKFHxfxC+o6 dJme0tNOpOl6PgKPTlxr4uQZQHWAMEpbIg6ZIPwL6DSnXc+jXwJ1ZJvkACltzPE6v/uf 5O0MJGC3U1zj0aDjYNHbHxV7JEk4vjuTmdAGVnNzLsg6wUB4VzTinx2bc+sFtl7o4Yk8 yuXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MErN5ZD04UvmYCnMRlaL3xeMx2QZBHVnG+TqIfnIP/M=; b=WZ1ZyGMc27yVTCNVZJGAukJe37Ok9R6NDqsLJotHt4W48mqLSfLWrQZ6ho17z9huuD eBJbZ2ECIKwCxbw5Mxmq0019Qfh11wXBj/eKklAo41PPxGy+l7TiVYyHPRewP89JHqe/ 09yCMhLKVQcl8evDOHUI+aIsXLhSbq0zAie157qGfZqhjOWSl5F2GZyJkpNtv+xakltE uS0Pp5gpAZ2YBHiNAOzMeRp5yQPPFeepmx7iFnji10Az6/PHnTCZHeREvLIpzWeWKH7R iarUpxdyJZV6sAw+q3IHykkQZiitRLsKXHpYtMWIZcKH6+YME/hripwVPBQ8Cv9DQWRV tu+w== X-Gm-Message-State: AGRZ1gI7shRri1N/kl5L9MPdYrvV44ii1gDV1+WXoImWYozEXanPelys s8niRlLljXPuZOf3il0+AfI4ma3USYNVgPwf0SoNbkNUrM3XPwGA0h6e/SEs07z1S4gg20LcqxO TsZvUvTYsiJAc9B78JuVd21qT2TYR4caKkLqJAWXOKgWp45DWtjOiGhx/rZgFJMWlVOFp0CpaTX I014fDV7kmdDjVM39eeg== X-Google-Smtp-Source: AFSGD/V0dzhZZ2P6jxVBe3Jyj7XqJyHurpdQDl9PSEArcGq2sBYOUh2LAXdQXEtuTVCMBFJoeHJDCA== X-Received: by 2002:aed:39e8:: with SMTP id m95mr6919646qte.317.1542398051419; Fri, 16 Nov 2018 11:54:11 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id x57sm22182174qtx.96.2018.11.16.11.54.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Nov 2018 11:54:10 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0E9175E9; Fri, 16 Nov 2018 16:54:03 -0300 (-03) Date: Fri, 16 Nov 2018 16:54:03 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Redesign initialization of partition routing structures Message-ID: <20181116195403.s3q4o7xg3sjfmqmk@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3606.1542395776@sss.pgh.pa.us> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-16, Tom Lane wrote: > Alvaro Herrera writes: > > Redesign initialization of partition routing structures > > Some of the buildfarm doesn't like this: > > ccache gcc -std=c99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -g -O2 -I../../../src/include -isysroot /Developer/SDKs/MacOSX10.6.sdk -DCOPY_PARSE_PLAN_TREES -DRAW_EXPRESSION_COVERAGE_TEST -c -o functioncmds.o functioncmds.c > execPartition.c:96: error: redefinition of typedef 'PartitionTupleRouting' > ../../../src/include/executor/execPartition.h:23: error: previous declaration of 'PartitionTupleRouting' was here > make[3]: *** [execPartition.o] Error 1 Thanks, I just noticed it and will push this in a minute. Since I cannot reproduce the error, it's a blind fix, but seems correct. diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c index e3cb4fb1be..ec5628c9c2 100644 --- a/src/backend/executor/execPartition.c +++ b/src/backend/executor/execPartition.c @@ -82,7 +82,7 @@ * Memory context used to allocate subsidiary structs. *----------------------- */ -typedef struct PartitionTupleRouting +struct PartitionTupleRouting { Relation partition_root; PartitionDispatch *partition_dispatch_info; @@ -93,7 +93,7 @@ typedef struct PartitionTupleRouting int max_partitions; HTAB *subplan_resultrel_htab; MemoryContext memcxt; -} PartitionTupleRouting; +}; /*----------------------- * PartitionDispatch - information about one partitioned table in a partition -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services