Re: How to use PQfn() in libpq library?

Поиск
Список
Период
Сортировка
От Bruce YUAN
Тема Re: How to use PQfn() in libpq library?
Дата
Msg-id eca90e1a0906190726x2034afd1rc520b26ec7e1ba3d@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to use PQfn() in libpq library?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: How to use PQfn() in libpq library?  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
Hi Tom,
 
Which interface will replace this? And where can get it's reference?
Best regards,
Bruce
2009/6/19 Tom Lane <tgl@sss.pgh.pa.us>
Bruce YUAN <suanic@gmail.com> writes:
> How to use PQfn() in libpq library?

Look into src/interfaces/libpq/fe-lobj.c for several examples.
However, please note the comment in the documentation:

   This interface is somewhat obsolete, as one can achieve similar
   performance and greater functionality by setting up a prepared
   statement to define the function call.  Then, executing the statement
   with binary transmission of parameters and results substitutes for a
   fast-path function call.

> Which server functions can be
> executed from client?

Anything you could call normally can be called this way too.

                       regards, tom lane

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

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Invalid statement name (null) in line ## - what am I doing wrong ?
Следующее
От: "Leif B. Kristensen"
Дата:
Сообщение: Re: postgresql-8.3.7 unexpected connection closures