[HACKERS] Re: [COMMITTERS] pgsql: Remove objname/objargs split for referring toobjects - Mailing list pgsql-hackers

From Peter Eisentraut
Subject [HACKERS] Re: [COMMITTERS] pgsql: Remove objname/objargs split for referring toobjects
Date
Msg-id 1c4460ad-b35d-0129-12fc-2ecc1f8d1d3f@2ndquadrant.com
Whole thread Raw
In response to [HACKERS] Re: [COMMITTERS] pgsql: Remove objname/objargs split for referringto objects  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses [HACKERS] Re: [COMMITTERS] pgsql: Remove objname/objargs split for referringto objects  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: [HACKERS] multivariate statistics (v25)
Next
From: Noah Misch
Date:
Subject: Re: [HACKERS] possible encoding issues with libxml2 functions