Re: escape string type for upcoming 8.1 - Mailing list pgsql-general

From Bruce Momjian
Subject Re: escape string type for upcoming 8.1
Date
Msg-id 200508101919.j7AJJMe10424@candle.pha.pa.us
Whole thread Raw
In response to Re: escape string type for upcoming 8.1  (Greg Stark <gsstark@mit.edu>)
Responses Re: escape string type for upcoming 8.1  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Greg Stark wrote:
>
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
>
> > E'' is more a marker than a type.  I realize making E a type might work,
> > but it seems unusual.
> >
> > What we could do is backpatch E'' to 8.0.X as a no-op like it will be in
> > 8.1.
>
> What happens if someone already has a type called "e" ?

That would be the same problem as someone having a type 'b' or 'x'.  It
would still work, but not for casts like text'str'.  Those letters are
caught in the lexer before getting into to the parser.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Mark Harrison
Date:
Subject: accessing postgresql via odbc?
Next
From: Sven Willenberger
Date:
Subject: Re: Index not being used unless enable_seqscan=false