Re: Question about the enum type - Mailing list pgsql-general

From Tim Hart
Subject Re: Question about the enum type
Date
Msg-id 70326e4da0629ad3f8841234ceff7fb0@mac.com
Whole thread Raw
In response to Re: Question about the enum type  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Feb 18, 2008, at 12:10 AM, Tom Lane wrote:

>> Would it have been reasonable to expect some kind of notice or warning
>> message stating that 'position' was special, and
>> <double-quote>position<double-quote> would be used instead?
>
> The way you phrase that makes me think you misunderstand what's
> happening here.  The name of the type isn't "position" with double
> quotes, it's just position.  You have to double-quote it when you
> use it to prevent the parser from thinking that the special SQL
> POSITION function call syntax is coming up.  There are other ways
> to do that though, for example if you write public.position (or
> whatever
> schema it's in) then you won't need double quotes.

I did misunderstand. I understand now that the quotes are used to call
out the string literally, and to avoid syntax-related parsing. Thanks
for the help.

Tim


pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: DB design: How to store object properties?
Next
From: "Mikko Partio"
Date:
Subject: SPI-functions and transaction control