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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce YUAN <suanic(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to use PQfn() in libpq library?
Date: 2009-06-19 14:00:44
Message-ID: 5230.1245420044@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce YUAN <suanic(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2009-06-19 14:07:18 Re: Invalid statement name (null) in line ## - what am I doing wrong ?
Previous Message leif 2009-06-19 12:35:48 Re: Invalid statement name (null) in line ## - what am I doing wrong ?