Re: array type name mangling - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: array type name mangling
Date
Msg-id 463CD56C.8090707@dunslane.net
Whole thread Raw
In response to Re: array type name mangling  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>   
>> Tom Lane wrote:
>>     
>>> makeArrayTypeName and users thereof.  Or are you going to extend pg_type
>>> to have a direct link?
>>>       
>
>   
>> I am going to change makeArrayTypeName() to do the mangling. Its users 
>> will need to pass in a namespace as well as a typename so it can do the 
>> checking.
>>     
>
> You missed the point: there is a need to find the array type associated
> with an existing element type, not only the other way round.  See
> LookupTypeName() and get_array_type().
>
>             
>   

OK, in that case I think we should extend pg_type with a direct link, 
don't you?

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: array type name mangling
Next
From: Andrew Dunstan
Date:
Subject: Re: iterating over relation's attributes