Re: pseudo-type record arguments for PL-functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pseudo-type record arguments for PL-functions
Дата
Msg-id 5756.1146930899@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pseudo-type record arguments for PL-functions  (Thomas Hallgren <thomas@tada.se>)
Ответы Re: pseudo-type record arguments for PL-functions  (Thomas Hallgren <thomas@tada.se>)
Список pgsql-hackers
Thomas Hallgren <thomas@tada.se> writes:
> The thing that makes me a bit confused is the 
> ArrayMetaState. The functions obtain it using:

>     my_extra = (ArrayMetaState *) fcinfo->flinfo->fn_extra;

> which is fine if there's only one array parameter. What happens if I 
> have two?

Make a struct that can hold two ArrayMetaStates.  Or whatever else you
need.  What a C function keeps in fn_extra is its own affair.
        regards, tom lane


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: pseudo-type record arguments for PL-functions
Следующее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: InsertXLogFile in pg_resetxlog