Re: question about deparsing const node and its typmod - Mailing list pgsql-hackers

From Tom Lane
Subject Re: question about deparsing const node and its typmod
Date
Msg-id 20191.1238681821@sss.pgh.pa.us
Whole thread Raw
In response to Re: question about deparsing const node and its typmod  ("Tao Ma" <feng_eden@163.com>)
Responses Re: question about deparsing const node and its typmod
List pgsql-hackers
"Tao Ma" <feng_eden@163.com> writes:
> Is it really important to show the
> 'bpchar' if there is no any explicit casting for the column default value.

Yeah.  We cannot say "char" because per SQL spec, that means "char(1)",
but there mustn't be a restriction to a single character here.

regression=# select 'abc'::char;bpchar 
--------a
(1 row)

regression=# select 'abc'::bpchar;bpchar 
--------abc
(1 row)

        regards, tom lane


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Path case sensitivity on windows
Next
From: Tom Lane
Date:
Subject: Re: 8.4 open items list