pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Implement table partitioning.
Date: Thu, 8 Dec 2016 14:11:22 -0500
Message-ID: <20161208191122.GF23417@tamriel.snowman.net> (raw)
In-Reply-To: <CA+Tgmob8fYhw_kO+T=GUCSvXTZZOx3dc2pxChRYwvqu5JrCvDQ@mail.gmail.com>
References: <E1cEgoz-0001H4-UP@gemulon.postgresql.org>
	<20161208184931.GE23417@tamriel.snowman.net>
	<CA+Tgmob8fYhw_kO+T=GUCSvXTZZOx3dc2pxChRYwvqu5JrCvDQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert,

* Robert Haas (robertmhaas@gmail.com) wrote:
> On Thu, Dec 8, 2016 at 1:49 PM, Stephen Frost <sfrost@snowman.net> wrote:
> > * Robert Haas (rhaas@postgresql.org) wrote:
> >> Implement table partitioning.
> >
> > My compiler apparently doesn't care for this:
> >
> > .../src/backend/catalog/partition.c: In function ‘partition_rbound_cmp’:
> > .../src/backend/catalog/partition.c:1787:13: warning: ‘cmpval’ may be used uninitialized in this function [-Wmaybe-uninitialized]
> >   if (cmpval == 0 && lower1 != lower2)
> 
> So, apparently your compiler doesn't recognize that the loop always
> has to execute at least once, because we don't support a table
> partitioned on zero attributes.  If you initialize cmpval to 0 at the
> top of the function, does that fix it?

Yes, that makes the compiler warning go away.

... your compiler knows that key->partnatts will always be >= 1?

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (36+ messages)  latest in thread

Message-ID: <20161208191122.GF23417@tamriel.snowman.net>
Permalink:  ../20161208191122.GF23417@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20161208191122.GF23417@tamriel.snowman.net

 · 

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: sfrost@snowman.net, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Implement table partitioning.
  In-Reply-To: <20161208191122.GF23417@tamriel.snowman.net>
  References: <E1cEgoz-0001H4-UP@gemulon.postgresql.org> <20161208184931.GE23417@tamriel.snowman.net> <CA+Tgmob8fYhw_kO+T=GUCSvXTZZOx3dc2pxChRYwvqu5JrCvDQ@mail.gmail.com> <20161208191122.GF23417@tamriel.snowman.net>

* 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