Re: Re: postgres C function returning SETOF record gives RECORD TYPE NOT REGISTERED

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: postgres C function returning SETOF record gives RECORD TYPE NOT REGISTERED
Дата
Msg-id 21421.1244157159@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: postgres C function returning SETOF record gives RECORD TYPE NOT REGISTERED  ("raajarshi ." <raajarshi@sify.com>)
Список pgsql-novice
"raajarshi ." <raajarshi@sify.com> writes:
> to add a little clarification to the problem description, the transformed
> query (one which is actually run) returns the same result as the submitted
> query so actually the caller knows the number and type of fields to expect
> but they can be different for different calls as any query can be specified
> as the argument of the function.So would I have to create a placeholder type
> for each run of the query or what ??

You might want to look at the way contrib/dblink does this.

            regards, tom lane

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

Предыдущее
От: Bruce Hyatt
Дата:
Сообщение: Yum Update Errors
Следующее
От: "Larry Silvermintz"
Дата:
Сообщение: Update Triggers accessing new values and intercepting.