Re: [HACKERS] cannot cast bpchar and varchar - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: [HACKERS] cannot cast bpchar and varchar
Date
Msg-id 199902100859.RAA28146@srapc451.sra.co.jp
Whole thread Raw
In response to Re: [HACKERS] cannot cast bpchar and varchar  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
Responses Re: [HACKERS] cannot cast bpchar and varchar
List pgsql-hackers
>Hmmm. It seems to be a combination of two problems:
>
>1) not knowing which type should be preferred (or how to compare varchar
>and bpchar; should I strip the blank padding from a bpchar? Probably
>so...).
>
>2) swallowing the type coersions since bpchar, varchar, and text are
>considered to be binary compatible. I may have seen another instance of
>this being a problem, and perhaps should figure out how to propagate the
>new coerced type into the query rather than dropping it.
>
>Will look at this. Question: how *should* we compare bpchar and varchar?
>It may be that we should have some explicit comparison or coersion
>routines to make things work smoothly.

Not sure. I will check some SQL books at home.
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] PostgreSQL and Solaris 7?
Next
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] TIME QUALIFICATION