Getting relation/attribute names from inside UDT input/output function

Поиск
Список
Период
Сортировка
От Humberto Luiz Razente
Тема Getting relation/attribute names from inside UDT input/output function
Дата
Msg-id 32927.143.107.231.165.1147265884.squirrel@mail2.icmc.usp.br
обсуждение исходный текст
Ответы Re: Getting relation/attribute names from inside UDT input/output function  (Michael Fuhr <mike@fuhr.org>)
Re: Getting relation/attribute names from inside UDT input/output function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello,

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.

PG_FUNCTION_INFO_V1(complex_in);
Datum complex_in(PG_FUNCTION_ARGS) {
   char *arg1 = PG_GETARG_CSTRING(0);
   char *relname = ???
   char *attribname = ???
   ...
   PG_RETURN_POINTER(result);
}

Does anybody have an idea of how I get that?

Thanks in advance

Humberto Razente
hlr@icmc.usp.br


В списке pgsql-general по дате отправления:

Предыдущее
От: "chris smith"
Дата:
Сообщение: Re: understanding explain data
Следующее
От: Sim Zacks
Дата:
Сообщение: Re: understanding explain data