pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Redesign initialization of partition routing structures
Date: Fri, 16 Nov 2018 16:54:03 -0300
Message-ID: <20181116195403.s3q4o7xg3sjfmqmk@alvherre.pgsql> (raw)
In-Reply-To: <3606.1542395776@sss.pgh.pa.us>

On 2018-Nov-16, Tom Lane wrote:

> Alvaro Herrera <alvherre@alvh.no-ip.org> 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.

inline patch 1: src/backend/executor/execPartition.c (+2/-2 lines) download inline-1.patchdiff --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

view thread (5+ messages)  latest in thread

Message-ID: <20181116195403.s3q4o7xg3sjfmqmk@alvherre.pgsql>
Permalink:  ../20181116195403.s3q4o7xg3sjfmqmk@alvherre.pgsql/
Also on:    postgresql.org/message-id/20181116195403.s3q4o7xg3sjfmqmk@alvherre.pgsql

 ·  · 

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: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Redesign initialization of partition routing structures
  In-Reply-To: <20181116195403.s3q4o7xg3sjfmqmk@alvherre.pgsql>
  References: <3606.1542395776@sss.pgh.pa.us> <20181116195403.s3q4o7xg3sjfmqmk@alvherre.pgsql>

* 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