Bruce Momjian <bruce(at)momjian(dot)us> writes:
> On Thu, Feb 2, 2012 at 10:33:24AM +0300, Dmitriy Igrishin wrote:
>> 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*.
> Can someone answer this? Are we consistent here?
We're not, particularly, but changing any of this seems likely to
create more pain than it removes.
regards, tom lane
In response to
Responses
pgsql-hackers by date
| Next: | From: Fujii Masao | Date: 2012-08-27 16:46:18 |
| Subject: Useless removal of duplicate GIN index entries in pg_trgm |
| Previous: | From: Robert Haas | Date: 2012-08-27 16:39:02 |
| Subject: Re: Timing overhead and Linux clock sources |