Re: Type of bare text strings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Type of bare text strings
Date: 2006-06-08 17:11:27
Message-ID: 29018.1149786687@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> "unknown". This seems to be a cstring (i.e. length 5 considering the
> trailing \0)

Yeah. "unknown" used to have the same representation as "text", ie
varlena, but I changed it recently because I realized that the normal
thing we do with an "unknown" literal is feed it to some datatype's
input converter. Making it the same as cstring saves a conversion step.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-06-08 17:17:16 Re: ADD/DROP INHERITS
Previous Message Tom Lane 2006-06-08 17:01:14 Re: ADD/DROP INHERITS