unsigned and signed chars in libpq API

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: unsigned and signed chars in libpq API
Date: 2012-02-02 07:33:24
Message-ID: CAAfz9KP04h9t6h6q1=Hh+EUfcyV=os=G1PGqsk8uxt2R-dLt2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hey all,

Could you tell me please an objective reason why PQunescapeBytea()
returns unsigned char* rather than just char* ?
I am asking because a bit confused. How this intermixes with LO's API,
which based on signed chars (although as we all know large object -
is a just bytea splitted on chunks)?
And also PQgetvalue() returns char* rather than unsigned char*.

Thanks.

--
// Dmitriy.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2012-02-02 07:46:50 Re: Scaling XLog insertion (was Re: Moving more work outside WALInsertLock)
Previous Message Magnus Hagander 2012-02-02 07:32:46 Re: pg_stats_recovery view