From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Pimlott <pimlott(at)idiomtech(dot)com> |
Cc: | Zeugswetter Andreas SB SD <ZeugswetterA(at)spardat(dot)at>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, F Harvell <fharvell(at)fts(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: non-standard escapes in string literals |
Date: | 2002-06-03 03:25:36 |
Message-ID: | 200206030325.g533Pat06497@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andrew Pimlott wrote:
> On Wed, May 08, 2002 at 06:47:46PM +0200, Zeugswetter Andreas SB SD wrote:
> > When we are talking about the places where you need double escaping
> > (once for parser, once for input function) to make it work, I would also
> > say that that is very cumbersome (not broken, since it is thus documented) :-)
> > I would also default to strict ANSI, but not depricate the escaping when set.
> > All imho of course.
>
> As the original reporter of this issue, I am gratified to hear it
> acknowledged by the developers. Thanks! (I also apologize if I
> exaggerated the pain caused, as apparently not many other people
> have been bitten by this specific problem. Well, it was painful for
> me. ;-) )
>
> I must say, though, that I remain bothered by the "not broken"
> attitude. There is an obvious standard for PostgreSQL to follow,
> yet it is non-compliant in utterly trivial ways, which provide
> marginal or no benefits. Granted, changing long-standing defaults
> may not be acceptible; but there is a big difference between, "it is
> broken but we just can't change it for compatibility reasons", and,
> "it is not broken".
>
> It is my experience that most other free software projects take
> standards compliance more seriously than PostgreSQL, and my strong
> opinion that both the project and its users (not to mention the
> whole SQL database industry, eventually) would benefit from better
> support for the SQL standard.
>
> Ok, I've said my peace.
Yes, these are good points. Our big problem is that we use backslash
for two things, one for escaping single quotes and for escaping standard
C characters, like \n. While we can use the standard-supported '' to
insert single quotes, what should we do with \n? The problem is
switching to standard ANSI solution reduces our functionality.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Zeugswetter Andreas SB SD | 2002-06-03 11:20:13 | Re: non-standard escapes in string literals |
Previous Message | Bruce Momjian | 2002-06-03 01:36:11 | Re: HEADS UP: Win32/OS2/BeOS native ports |