Re: \xDD patch for 7.5devel - Mailing list pgsql-hackers

From Tom Lane
Subject Re: \xDD patch for 7.5devel
Date
Msg-id 2137.1068045923@sss.pgh.pa.us
Whole thread Raw
In response to \xDD patch for 7.5devel  (Jason Godden <jasongodden@optushome.com.au>)
Responses Re: \xDD patch for 7.5devel  (Markus Bertheau <twanger@bluetwanger.de>)
List pgsql-hackers
Jason Godden <jasongodden@optushome.com.au> writes:
> This is my first patch for PostgreSQL against the 7.5devel cvs (please
> advise if this is the wrong place to post patches).

pgsql-patches in future, please.

> +#define HEXVALUE(c) (((c)>='a') ? ((c)-87) : (((c)>='A') ? ((c)-55) : ((c)-'0')))

This seems excessively dependent on the assumption that the character
set is ASCII.  Why have you hard-coded numeric equivalents into this
macro?

BTW, the patch is incomplete because it is lacking documentation.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: weird regression test issue CVS HEAD
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: Experimental patch for inter-page delay in VACUUM