Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coiKH-0002Jn-D8 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Mar 2017 03:13:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coiKG-0005vw-Ua for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Mar 2017 03:13:12 +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 1coiKE-0005tu-St for pgsql-hackers@postgresql.org; Fri, 17 Mar 2017 03:13:11 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1coiKC-0001Ob-5C for pgsql-hackers@postgresql.org; Fri, 17 Mar 2017 03:13:09 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0ADF120649; Thu, 16 Mar 2017 23:13:07 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Thu, 16 Mar 2017 23:13:07 -0400 DKIM-Signature: v=1; a=rsa-sha1; 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=1zN790e792jVZyE49HRpN7ddFVo=; b=f0NIF03W3VWrzNRqZ4/VqHmw +9I0ff3xTjnR4F0QVw5uXOvnpmdq6nF9h6M66C0k7jF3sPyyFQ7ceh4BamJnC0MO +/Z8qbvKc4QQ0zFE7AqYQ7ueTrVz6ubb5hlHcZ7XHoUZx9B5nK4ukyY6keNjYdUh iBveLa81JMqhUEyQkyjlMUYaugCiJr1akuEaibGZFUmgiyKzEBqu8aosaOX+ckpW wmVLmVEXhc3QCu9Oi65OqeGGHHMH03xTWLCqnjC19z0m9xc8Zi8gLcuH2xoyNSbl XgmKEK5Q0IklOUq4QikRcVA97ZJDUZxb8hUfGXdjt0HqciSCMOLTVpbr2Zgkqw== X-ME-Sender: X-Sasl-enc: sEqARTO8xqlkp+JE3KTrWiUaPwSVKFLjUavVboPS4QVV 1489720386 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id BACE77E050; Thu, 16 Mar 2017 23:13:06 -0400 (EDT) Subject: Re: [COMMITTERS] pgsql: Remove objname/objargs split for referring to objects To: Alvaro Herrera , Michael Paquier References: <20170316155624.cjaweygkplodj66i@alvherre.pgsql> Cc: PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <1c4460ad-b35d-0129-12fc-2ecc1f8d1d3f@2ndquadrant.com> Date: Thu, 16 Mar 2017 23:13:06 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170316155624.cjaweygkplodj66i@alvherre.pgsql> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 3/16/17 11:56, Alvaro Herrera wrote: > Michael Paquier wrote: > >> What are you using as CFLAGS? As both typenames should be normally >> set, what about initializing those fields with NULL and add an >> assertion like the attached? > > Actually, my compiler was right -- this was an ancient bug I introduced > in 9.5 (commit a61fd533), and this new warning was my compiler being a > bit smarter now for some reason. The problem is we were trying to > extract String value from a TypeName node, which obviously doesn't work > very well. > > I pushed a real fix, not just a compiler-silencer, along with a few > lines in object_address.sql to make sure it works properly. Maybe we > need a few more tests cases for other parts of pg_get_object_address. > > Pushed fix, backpatched to 9.5. I am now seeing the warnings that Michael was reporting *after* your commit in 9.5 and 9.6. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers