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().
regards, tom lane