Re: How to use PQfn() in libpq library? - Mailing list pgsql-general

From Tom Lane
Subject Re: How to use PQfn() in libpq library?
Date
Msg-id 5230.1245420044@sss.pgh.pa.us
Whole thread Raw
In response to How to use PQfn() in libpq library?  (Bruce YUAN <suanic@gmail.com>)
Responses Re: How to use PQfn() in libpq library?
List pgsql-general
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 by date:

Previous
From: Bruce YUAN
Date:
Subject: How to use PQfn() in libpq library?
Next
From: "Albe Laurenz"
Date:
Subject: Re: Invalid statement name (null) in line ## - what am I doing wrong ?