Re: question about deparsing const node and its typmod

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tao Ma" <feng_eden(at)163(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: question about deparsing const node and its typmod
Date: 2009-04-02 14:17:01
Message-ID: 20191.1238681821@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Tao Ma" <feng_eden(at)163(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Steven Lembark 2009-04-02 14:20:32 Re: [HACKERS] Mentors needed urgently for SoC & PostgreSQL Student Internships
Previous Message Magnus Hagander 2009-04-02 14:14:23 Re: Path case sensitivity on windows