Re: [PATCHES] Escape handling in strings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Rod Taylor <pg(at)rbt(dot)ca>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Subject: Re: [PATCHES] Escape handling in strings
Date: 2005-06-17 03:33:54
Message-ID: 15299.1118979234@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-06-17 04:22:41 Re: [PATCHES] Escape handling in strings
Previous Message Bruce Momjian 2005-06-17 02:15:37 Re: Autovacuum in the backend

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-06-17 04:22:41 Re: [PATCHES] Escape handling in strings
Previous Message Bruce Momjian 2005-06-17 01:53:45 Re: [PATCHES] Escape handling in strings