Re: Dblink vs calling a function that returns void

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Dblink vs calling a function that returns void
Дата
Msg-id b42b73151003300924u4d192a8ao99b168e2d07b2702@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Dblink vs calling a function that returns void  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Dblink vs calling a function that returns void  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Mon, Mar 29, 2010 at 12:12 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Boszormenyi Zoltan <zb@cybertec.at> writes:
>> I need to call a function via dblink that returns a void, i.e.
>> technically nothing.
>
> You're overthinking the problem.  Imagine void is just a datatype
> (which it is...)  This should work:

but it isn't! void returning functions may not be queried over the
binary protocol (why?), so if you used dblink w/void returning
functions, and dblink later supported binary results, your code would
break (i'm sure such a thing would be optional, but the point stands).

merlin

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

Предыдущее
От: Joshua Berry
Дата:
Сообщение: Re: User action accounting
Следующее
От: Mike Toews
Дата:
Сообщение: Converting time interval to double precision of time unit