Re: FW: BUG #17258: Unexpected results in CHAR(1) data type - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: FW: BUG #17258: Unexpected results in CHAR(1) data type
Date
Msg-id CAKFQuwYCKt3Qncx-YiRg1QRSDx4DROARgtFQWZmNPbWneQbicA@mail.gmail.com
Whole thread Raw
In response to BUG #17258: Unexpected results in CHAR(1) data type  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Fri, Oct 29, 2021 at 2:06 PM David M. Calascibetta <david@calascibetta.com> wrote:

I disagree about it being a feature request.

I was only using substr to demonstrate the problem.

Here is the problem without using any functions:

 

create table x (a char(1));

insert into x values ('x');

insert into x values (' ');

select length(a) from x;

1

0

 


If length(a) isn't a function call then what is it?

David J.

pgsql-bugs by date:

Previous
From: "David M. Calascibetta"
Date:
Subject: RE: FW: BUG #17258: Unexpected results in CHAR(1) data type
Next
From: Kamigishi Rei
Date:
Subject: Re: BUG #17245: Index corruption involving deduplicated entries