pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <kgrittn@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@postgresql.org <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Add infrastructure to support EphemeralNamedRelation references.
Date: Thu, 06 Apr 2017 18:21:00 -0400
Message-ID: <15598.1491517260@sss.pgh.pa.us> (raw)
In-Reply-To: <CACjxUsP8g_4yhdFS7rPd+YUz__s8_3MC059tKf-UJ__h6Wr3ig@mail.gmail.com>
References: <E1cuAaP-0005U7-DK@gemulon.postgresql.org>
	<20170406211904.4hzfdir6gyvlct2q@alap3.anarazel.de>
	<CACjxUsP8g_4yhdFS7rPd+YUz__s8_3MC059tKf-UJ__h6Wr3ig@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Kevin Grittner <kgrittn@gmail.com> writes:
> On Thu, Apr 6, 2017 at 4:19 PM, Andres Freund <andres@anarazel.de> wrote:
>> My compiler, quite justifiedly, complains:
>> /home/andres/src/postgresql/src/backend/parser/parse_relation.c:2899:43: warning: comparison between pointer and zero character constant [-Wpointer-compare]
>> (list_nth(rte->coltypes, attnum - 1) != InvalidOid);

> Good catch.  Will push a change from list_nth() to list_nth_oid()
> for the benefit of stricter compilers.

If the problem is that the list is an OID list, then why didn't the
"Assert(IsPointerList(list))" in list_nth fire?  Either this is the
wrong fix, or this code has never been exercised (at least not in
an assert-enabled build).

rte->coltypes certainly ought to be an OID list, so I lean to the
inadequate-testing theory ...

			regards, tom lane


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



view thread (14+ messages)  latest in thread

Message-ID: <15598.1491517260@sss.pgh.pa.us>
Permalink:  ../15598.1491517260@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15598.1491517260@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, kgrittn@gmail.com, andres@anarazel.de
  Subject: Re: pgsql: Add infrastructure to support EphemeralNamedRelation references.
  In-Reply-To: <15598.1491517260@sss.pgh.pa.us>
  References: <E1cuAaP-0005U7-DK@gemulon.postgresql.org> <20170406211904.4hzfdir6gyvlct2q@alap3.anarazel.de> <CACjxUsP8g_4yhdFS7rPd+YUz__s8_3MC059tKf-UJ__h6Wr3ig@mail.gmail.com> <15598.1491517260@sss.pgh.pa.us>

* 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