Re: Getting relation/attribute names from inside UDT input/output function - Mailing list pgsql-general

From Tom Lane
Subject Re: Getting relation/attribute names from inside UDT input/output function
Date
Msg-id 1447.1147276224@sss.pgh.pa.us
Whole thread Raw
In response to Getting relation/attribute names from inside UDT input/output function  ("Humberto Luiz Razente" <hlr@icmc.usp.br>)
List pgsql-general
"Humberto Luiz Razente" <hlr@icmc.usp.br> writes:
> I wrote the UDT input/output functions for my complex type
> and everything is working well.
> But now, in the input function, I need to get the relation/attribute
> names where a new object is being inserted.

Since, in general, there *is* no such place where the value would be
inserted, this is impossible.  Consider

    SELECT 'foo'::yourtype

Better rethink what you're trying to accomplish.

            regards, tom lane

pgsql-general by date:

Previous
From: pgaio@portugalmail.pt
Date:
Subject: how do i unsubscribe
Next
From: Scott Marlowe
Date:
Subject: Re: how do i unsubscribe