Re: Escape handling in strings

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Escape handling in strings
Date: 2005-06-17 13:42:43
Message-ID: 200506171342.j5HDghe01930@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian wrote:
> A summary of my proposal to add a new E'' string for escape and have
> non-E escapes not handle backslashes specially is at:
>
> http://candle.pha.pa.us/cgi-bin/pgescape
>
> Attached is a patch that emits warnings for \ and \', perhaps for 8.1.
> The change to scan.l is the place this is done. The rest of the patch
> is adjustments to prevent our own code from generating warnings. It
> shows a good example of how users would have to change their code.
>
> It passes all regression tests, contrib regression, and initdb runs
> without warning.

Updated patch, with GUC and documentation additions.

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

Attachment Content-Type Size
unknown_filename text/plain 60.8 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-06-17 13:54:52 Re: Autovacuum in the backend
Previous Message Nicolai Tufar 2005-06-17 13:38:18 Re: DTrace Probes?

Browse pgsql-patches by date

  From Date Subject
Next Message Greg Sabino Mullane 2005-06-17 16:38:05 Re: Quick little \h enhancement for psql
Previous Message Bruce Momjian 2005-06-17 12:55:21 Re: [PATCHES] Escape handling in strings