Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwFm6-0004Fv-8z for pgsql-committers@arkaria.postgresql.org; Thu, 06 Apr 2017 22:21:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cwFm5-0003qS-Mm for pgsql-committers@arkaria.postgresql.org; Thu, 06 Apr 2017 22:21:05 +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 1cwFm5-0003qJ-Bo for pgsql-committers@postgresql.org; Thu, 06 Apr 2017 22:21:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cwFm3-0000lj-6o for pgsql-committers@postgresql.org; Thu, 06 Apr 2017 22:21:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v36ML092015599; Thu, 6 Apr 2017 18:21:00 -0400 From: Tom Lane To: Kevin Grittner cc: Andres Freund , "pgsql-committers@postgresql.org" Subject: Re: pgsql: Add infrastructure to support EphemeralNamedRelation references. In-reply-to: References: <20170406211904.4hzfdir6gyvlct2q@alap3.anarazel.de> Comments: In-reply-to Kevin Grittner message dated "Thu, 06 Apr 2017 17:03:20 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15597.1491517260.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 06 Apr 2017 18:21:00 -0400 Message-ID: <15598.1491517260@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Kevin Grittner writes: > On Thu, Apr 6, 2017 at 4:19 PM, Andres Freund 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) !=3D 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 --=20 Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers