Re: libpq Describe Extension [WAS: Bytea and perl]
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Volkan YAZICI <yazicivo@ttnet.net.tr>
Cc: Greg Sabino Mullane <greg@turnstep.com>, pgsql-hackers@postgresql.org
Date: 2006-08-18T19:54:51Z
Lists: pgsql-hackers
Volkan YAZICI <yazicivo@ttnet.net.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