Re: Re: [BUGS] BUG #4027: backslash escaping not disabled inplpgsql

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Jonathan Guthrie <jguthrie(at)brokersys(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [BUGS] BUG #4027: backslash escaping not disabled inplpgsql
Date: 2009-04-09 16:18:32
Message-ID: 200904091618.n39GIWi25074@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Tom Lane wrote:
> "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> > Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> >> I think the big issue is that having standard_conforming_strings
> >> affect function behavior introduces the same problems we have had in
> >> the past of having a GUC affect function behavior.
>
> > Can't that be managed with this CREATE FUNCTION option?:
> > SET configuration_parameter { TO value | = value | FROM CURRENT }
>
> It can be, the question is whether we're prepared to break everything
> under the sun until people add that.

I think we would first have to agree to issue escape_string_warning
warnings for code in PL/pgSQL functions, then think about having
standard_conforming_strings control PL/pgSQL behavior; this is what we
did with SQL and it seems to have worked.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2009-04-09 16:26:52 Re: Re: [BUGS] BUG #4027: backslash escaping not disabled inplpgsql
Previous Message Tom Lane 2009-04-09 16:06:16 Re: Re: [BUGS] BUG #4027: backslash escaping not disabled inplpgsql

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-04-09 16:22:52 Re: Documentation Update: WAL & Checkpoints
Previous Message Tom Lane 2009-04-09 16:06:16 Re: Re: [BUGS] BUG #4027: backslash escaping not disabled inplpgsql