Inconsistent cast to "char" - Mailing list pgsql-bugs

From Ian R. Campbell
Subject Inconsistent cast to "char"
Date
Msg-id CAOC8YUcXymCMpC5d=7JvcwyjXPTT00WeebOM3UqTBreOD1N9hw@mail.gmail.com
Whole thread Raw
Responses Re: Inconsistent cast to "char"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
I noticed that the following does not produce consistent cast results:

select 1::int8::"char", 1::int4::"char", 1::int2::"char"

The following yields 49, 1, 49 respectively:

select 1::int8::"char"::int, 1::int4::"char"::int, 1::int2::"char"::int

regards,
Ian Campbell

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17307: Performance deviation between the multiple iterations (NOPM & TPM values).
Next
From: PG Bug reporting form
Date:
Subject: BUG #17309: Memory consumption