From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "pgsql-hackers list" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: More char()/ascii() |
Date: | 2008-02-20 17:51:06 |
Message-ID: | 13144.1203529866@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> "Andrew Dunstan" <andrew(at)dunslane(dot)net> writes:
>> Fixing it would be trivial, I'm sure, but is it really a problem?
> The "char" data type which I was mistakenly using is enough of a wart that it
> probably doesn't matter what we do with it. There aren't any security holes
> with the current behaviour (I don't think).
The "char" type seems to be partly intended to serve as a poor man's
int1 --- at one time it even had arithmetic operators, if memory serves.
So we shouldn't disallow zero or mess with the fact that it's a signed
rather than unsigned byte.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2008-02-20 17:56:50 | Re: Permanent settings |
Previous Message | Tom Lane | 2008-02-20 16:48:16 | Re: Permanent settings |