Re: escape string type for upcoming 8.1

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Jeff Davis <jdavis-pgsql(at)empires(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: escape string type for upcoming 8.1
Date: 2005-08-10 19:19:22
Message-ID: 200508101919.j7AJJMe10424@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Stark wrote:
>
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sven Willenberger 2005-08-10 19:31:27 Re: Index not being used unless enable_seqscan=false
Previous Message Matt Miller 2005-08-10 19:17:16 Re: [GENERAL] Testing of MVCC