Re: Text search segmentation fault - Mailing list pgsql-general

From Tom Lane
Subject Re: Text search segmentation fault
Date
Msg-id 22358.1233247822@sss.pgh.pa.us
Whole thread Raw
In response to Re: Text search segmentation fault  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-general
Gregory Stark <stark@enterprisedb.com> writes:
> I really think he should just change all the "unsigned int" into "unsigned
> char" and not do the type punning with pointer casts. That's just evil.

Oh, I see.  That would work too, but I don't really see that it's a huge
improvement.

What *would* be an improvement IMHO is to declare the pointer as
unsigned char * in the first place ;-).  However, that might result
in having to introduce a lot of casts elsewhere ...

            regards, tom lane

pgsql-general by date:

Previous
From: Gerhard Wiesinger
Date:
Subject: Full backup - pg_dumpall sufficient?
Next
From: Raymond O'Donnell
Date:
Subject: Re: Full backup - pg_dumpall sufficient?