parsing binary varchar[]-s

From: Igor Shevchenko <igor(at)carcass(dot)ath(dot)cx>
To: pgsql-general(at)postgresql(dot)org
Subject: parsing binary varchar[]-s
Date: 2004-07-26 22:29:11
Message-ID: 200407270129.11468.igor@carcass.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I use binary mode for sending params and receiving data using libpq with
protocol v3; PostgreSQL version is 7.4.3.
Here, varchar[]-s are returned in binary mode; they're generated from internal
structs by "array_send" function in src/backend/utils/adt/arrayfuncs.c.
PQftype(..) returns 1015 for those columns. I couldn't find any #define for
this OID -- does this mean it can change in future pg releases ? Also, can I
safely use the binary format as described (by the code) in "array_send" ? Is
this interface is frozen, as a part of protocol v3 spec ?

--
Best Regards,
Igor Shevchenko

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Barwick 2004-07-26 22:39:06 Re: estimating table size
Previous Message David Parker 2004-07-26 22:14:06 estimating table size