Re: non-standard escapes in string literals

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andrew Pimlott <pimlott(at)idiomtech(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: non-standard escapes in string literals
Date: 2002-04-25 14:41:56
Message-ID: 200204251441.g3PEfup12159@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Pimlott wrote:
> I posted this some time ago to pgsql-bugs[1], to no response. So
> I'll venture to try here.
>
> Postgres breaks the standard for string literals by supporting
> C-like escape sequences. This causes pain for people trying to
> write portable applications. Is there any hope for an option to
> follow the standard strictly?

This is actually the first time this has come up (that I remember). We
do support C escaping, but you are the first to mention that it can
cause problems for portable applications.

Anyone else want to comment? I don't know how to address this.

--
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-04-25 14:55:58 Re: Sequential Scan Read-Ahead
Previous Message Bruce Momjian 2002-04-25 14:37:34 Re: WAL -> Replication