Re: libpq Describe Extension [WAS: Bytea and perl]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
Cc: Greg Sabino Mullane <greg(at)turnstep(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: libpq Describe Extension [WAS: Bytea and perl]
Date: 2006-08-18 19:54:51
Message-ID: 24329.1155930891@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice

Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr> writes:
> I've prepared a new patch that adds below commands to the libpq:

> /* Accessor functions for PGresParamDesc field of PGresult. */
> int PQnparams(const PGresult *res)
> int PQparamType(const PGresult *res, int param_num)

> /* Async functions. */
> int PQsendDescribePrepared(PGconn *conn, const char *stmt)
> int PQsendDescribePortal(PGconn *conn, const char *portal)

> /* Synchronous ones. */
> PGresult *PQdescribePrepared(PGconn *conn, const char *stmt)
> PGresult *PQdescribePortal(PGconn *conn, const char *portal)

Applied with some small revisions to make it fit in better with the
existing libpq code (I don't think it desirable to have
copied-and-pasted versions of PQsendQueryStart, for instance).
I added some documentation also.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-08-18 19:55:13 Re: pg_dump schema breakup
Previous Message Alvaro Herrera 2006-08-18 19:33:06 Re: pg_dump schema breakup

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2006-08-18 20:04:04 Re: Use of !~* to keep a varchar column UNIQUE case-insensitive
Previous Message Daniel T. Staal 2006-08-18 18:59:29 Re: Use of !~* to keep a varchar column UNIQUE