Re: [PATCHES] Escape handling in strings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] Escape handling in strings
Date
Msg-id 15299.1118979234@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] Escape handling in strings  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [PATCHES] Escape handling in strings
Re: [PATCHES] Escape handling in strings
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> OK, the current patch warns about two things, \' with one message, and
> any backslash in a non-E string with a different message.

Those are two very different things.  \' is easy to get around and
there's no very good reason not to send '' instead.  But avoiding all
use of \anything is impossible (think \\) so a non-suppressable warning
for that would be quite unacceptable IMHO.  I think it's much too early
to be throwing a warning for \anything anyway.  8.2 or so, OK, but not
in this cycle.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Autovacuum in the backend
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Escape handling in strings