Re: Type of bare text strings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Type of bare text strings
Date
Msg-id 29018.1149786687@sss.pgh.pa.us
Whole thread Raw
In response to Re: Type of bare text strings  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: ADD/DROP INHERITS
Next
From: Tom Lane
Date:
Subject: Re: ADD/DROP INHERITS