Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwFi6-0003OX-PF for pgsql-committers@arkaria.postgresql.org; Thu, 06 Apr 2017 22:16:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cwFi6-000779-95 for pgsql-committers@arkaria.postgresql.org; Thu, 06 Apr 2017 22:16:58 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cwFi5-00076z-Pp for pgsql-committers@postgresql.org; Thu, 06 Apr 2017 22:16:57 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cwFhy-0004Lo-F5; Thu, 06 Apr 2017 22:16:57 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 27A09209A1; Thu, 6 Apr 2017 18:16:49 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 06 Apr 2017 18:16:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=rOtdsmW10rsiN7olTJ2on1n49j+3CsgQ6W3W1oVKA4A=; b=O+pERW0F /rjQWdFlciicjWFeLZ+pMKUl4P52POfunt4mD1ucu1fTNzIPwAo8ImwJ8c6IqsGi bnSf/TkZ+OJVLmSpJ4mWyXkWRYxyxgB2JcokO9NSmUuIxJs3rqKyu3wSrKDuzYv2 iIBn0KZ+Ukc8H1zFoF/LWcxzXaJv5FboZBbdelg4pnouPTJj7iYF9BRccRy5dB/v HsTTrzSyt31vCjUaLmyo9eCoyvxieCzYjXzw+sbeGmzFnsIk8rDMFn94QkRB9+rI KSLWgTl4gQVYt3gvUdqXdNUiVQUQKzTvieiRWsNIL9bOQyAwmaGf+1x4qnckOLtm GrJcNvf1F/BG5A== X-ME-Sender: X-Sasl-enc: rB/q8SXSmFnOCFHvHCAKdJm0gqh721GBxcOGaaqA3lYj 1491517008 Received: from intern.anarazel.de (unknown [172.56.39.40]) by mail.messagingengine.com (Postfix) with ESMTPA id BFC317E8C8; Thu, 6 Apr 2017 18:16:48 -0400 (EDT) Date: Thu, 6 Apr 2017 15:16:47 -0700 From: Andres Freund To: Kevin Grittner Cc: Kevin Grittner , "pgsql-committers@postgresql.org" Subject: Re: pgsql: Add infrastructure to support EphemeralNamedRelation references. Message-ID: <20170406221647.naqnrcuvji5tpf3f@alap3.anarazel.de> References: <20170406211904.4hzfdir6gyvlct2q@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 On 2017-04-06 17:03:20 -0500, Kevin Grittner wrote: > 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: In function ‘get_rte_attribute_is_dropped’: > > /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); > > ^~ > > /home/andres/src/postgresql/src/backend/parser/parse_relation.c:2899:7: note: did you mean to dereference the pointer? > > (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. While I'm at it, I'll throw > on another layer of parentheses to ensure people read that > correctly. Out of curiosity, what compiler or setting catches this? gcc-7 here, and the specific warning is -Wpointer-compare. - Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers