standard_conforming_strings

Lists: pgsql-hackers
From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: standard_conforming_strings
Date: 2010-07-14 14:48:28
Message-ID: AANLkTim6fY1phpSKkeks8hQTmBRFDvBHfpAgHYEdS0m0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Jan 29, 2010 at 10:02 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>> An actual plan here might look like "let's flip it before 9.1alpha1
>> so we can get some alpha testing cycles on it" ...
>
> "Hey, let's flip it in 9.1 CF 1, so that we can have some alpha testing
> cycles on it."

Should we do this? Patch attached.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

Attachment Content-Type Size
standard_conforming_strings_on.patch text/x-patch 4.0 KB

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-14 15:03:55
Message-ID: 201007141503.o6EF3tL05234@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas wrote:
> On Fri, Jan 29, 2010 at 10:02 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> >> An actual plan here might look like "let's flip it before 9.1alpha1
> >> so we can get some alpha testing cycles on it" ...
> >
> > "Hey, let's flip it in 9.1 CF 1, so that we can have some alpha testing
> > cycles on it."
>
> Should we do this? Patch attached.

+1

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

+ None of us is going to be here forever. +


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-14 15:37:18
Message-ID: 6278.1279121838@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Fri, Jan 29, 2010 at 10:02 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> An actual plan here might look like "let's flip it before 9.1alpha1
> so we can get some alpha testing cycles on it" ...
>>
>> "Hey, let's flip it in 9.1 CF 1, so that we can have some alpha testing
>> cycles on it."

> Should we do this? Patch attached.

I'm still scared to death of the security implications, but if we don't
do it now, when will be a better time? Might as well try it and see
what breaks. Note there had better be a large compatibility warning in
the alpha release notes, and we had better pester driver authors to test
with 9.1alpha1 as soon as it's out.

regards, tom lane


From: Richard Huxton <dev(at)archonet(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-15 05:30:46
Message-ID: 4C3E9D06.5070608@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 14/07/10 15:48, Robert Haas wrote:
> On Fri, Jan 29, 2010 at 10:02 PM, Josh Berkus<josh(at)agliodbs(dot)com> wrote:
>>> An actual plan here might look like "let's flip it before 9.1alpha1
>>> so we can get some alpha testing cycles on it" ...
>>
>> "Hey, let's flip it in 9.1 CF 1, so that we can have some alpha testing
>> cycles on it."
>
> Should we do this? Patch attached.

Any reason not to add a line to the 9.0 docs/release notes saying
"WARNING: The PGDG currently plan to change this setting's default in 9.1"?

--
Richard Huxton
Archonet Ltd


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, AlexHunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-15 13:20:29
Message-ID: BF458803-C6DF-4395-A972-B16A76F067B5@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Jul 15, 2010, at 12:30 AM, Richard Huxton <dev(at)archonet(dot)com> wrote:
> On 14/07/10 15:48, Robert Haas wrote:
>> On Fri, Jan 29, 2010 at 10:02 PM, Josh Berkus<josh(at)agliodbs(dot)com> wrote:
>>>> An actual plan here might look like "let's flip it before 9.1alpha1
>>>> so we can get some alpha testing cycles on it" ...
>>>
>>> "Hey, let's flip it in 9.1 CF 1, so that we can have some alpha testing
>>> cycles on it."
>>
>> Should we do this? Patch attached.
>
> Any reason not to add a line to the 9.0 docs/release notes saying "WARNING: The PGDG currently plan to change this setting's default in 9.1"?

Well, mostly that we could change our mind if it makes too big a boom. And it's not as if we could go back and update everyone's docs after-the-fact. I agree we need some press, but the docs are not the right vehicle.

...Robert


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Richard Huxton <dev(at)archonet(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, AlexHunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-15 15:43:49
Message-ID: 5959.1279208629@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Jul 15, 2010, at 12:30 AM, Richard Huxton <dev(at)archonet(dot)com> wrote:
>> Any reason not to add a line to the 9.0 docs/release notes saying "WARNING: The PGDG currently plan to change this setting's default in 9.1"?

> Well, mostly that we could change our mind if it makes too big a boom.
> And it's not as if we could go back and update everyone's docs
> after-the-fact.

Yeah. Our track record for predicting in the version-N docs what
changes will be made in version N+1 is spectacularly bad; we should
not try that here, even if the change is being made before 9.0 actually
goes final. There is already a statement that the default will change
"in a future release", and that seems sufficient to me.

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-18 08:35:11
Message-ID: 1279442111.30539.3.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On ons, 2010-07-14 at 10:48 -0400, Robert Haas wrote:
> On Fri, Jan 29, 2010 at 10:02 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> >> An actual plan here might look like "let's flip it before 9.1alpha1
> >> so we can get some alpha testing cycles on it" ...
> >
> > "Hey, let's flip it in 9.1 CF 1, so that we can have some alpha testing
> > cycles on it."
>
> Should we do this? Patch attached.

I think there are two ways we can do this, seeing that most appear to be
in favor of doing it in the first place: Either we just flip the
default, make a note in the release notes, and see what happens. Or we
spend some time now and make, say, a list of driver versions and
application versions that work with standard_conforming_strings = on,
and then decide based on that, and also make that list a public resource
for packagers etc.


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-18 16:42:59
Message-ID: 9AF6416B-42C2-47AB-8338-DFBD08035638@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Jul 18, 2010, at 1:35 AM, Peter Eisentraut wrote:

> I think there are two ways we can do this, seeing that most appear to be
> in favor of doing it in the first place: Either we just flip the
> default, make a note in the release notes, and see what happens. Or we
> spend some time now and make, say, a list of driver versions and
> application versions that work with standard_conforming_strings = on,
> and then decide based on that, and also make that list a public resource
> for packagers etc.

Do both. Turn them on, then make a list and inform driver maintainers who need to update. They've got a year, after all.

Best,

David


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-18 17:16:59
Message-ID: 11923.1279473419@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

"David E. Wheeler" <david(at)kineticode(dot)com> writes:
> On Jul 18, 2010, at 1:35 AM, Peter Eisentraut wrote:
>> I think there are two ways we can do this, seeing that most appear to be
>> in favor of doing it in the first place: Either we just flip the
>> default, make a note in the release notes, and see what happens. Or we
>> spend some time now and make, say, a list of driver versions and
>> application versions that work with standard_conforming_strings = on,
>> and then decide based on that, and also make that list a public resource
>> for packagers etc.

> Do both. Turn them on, then make a list and inform driver maintainers who need to update. They've got a year, after all.

Yeah. If we wait for driver authors to do something, we'll never make
this change at all. The idea of committing it now is to give them a
shove, *and* enough time to respond.

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "David E(dot)Wheeler" <david(at)kineticode(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-19 21:04:04
Message-ID: 1279573444.12234.13.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On sön, 2010-07-18 at 09:42 -0700, David E. Wheeler wrote:
> On Jul 18, 2010, at 1:35 AM, Peter Eisentraut wrote:
>
> > I think there are two ways we can do this, seeing that most appear to be
> > in favor of doing it in the first place: Either we just flip the
> > default, make a note in the release notes, and see what happens. Or we
> > spend some time now and make, say, a list of driver versions and
> > application versions that work with standard_conforming_strings = on,
> > and then decide based on that, and also make that list a public resource
> > for packagers etc.
>
> Do both. Turn them on, then make a list and inform driver maintainers who need to update. They've got a year, after all.

Here we go then:
http://wiki.postgresql.org/wiki/Standard_conforming_strings


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: "David E(dot)Wheeler" <david(at)kineticode(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-20 00:32:46
Message-ID: AANLkTilZX8GNNRKCpJYNh6D45h2FXtJLS9qA20_9tPgU@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mon, Jul 19, 2010 at 5:04 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On sön, 2010-07-18 at 09:42 -0700, David E. Wheeler wrote:
>> On Jul 18, 2010, at 1:35 AM, Peter Eisentraut wrote:
>>
>> > I think there are two ways we can do this, seeing that most appear to be
>> > in favor of doing it in the first place:  Either we just flip the
>> > default, make a note in the release notes, and see what happens.  Or we
>> > spend some time now and make, say, a list of driver versions and
>> > application versions that work with standard_conforming_strings = on,
>> > and then decide based on that, and also make that list a public resource
>> > for packagers etc.
>>
>> Do both. Turn them on, then make a list and inform driver maintainers who need to update. They've got a year, after all.
>
> Here we go then:
> http://wiki.postgresql.org/wiki/Standard_conforming_strings

Looks like a good start. We might want to make an "open items for
9.1" page and, as a first such open item, add a link to this page.

Since it seems we have consensus, I will commit the patch.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org, Michael Meskes <meskes(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-20 02:00:40
Message-ID: AANLkTikIawDvfuw2HJkhT8bsVAnnR6i_di0yFjOaMadF@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mon, Jul 19, 2010 at 8:32 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Mon, Jul 19, 2010 at 5:04 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
>> On sön, 2010-07-18 at 09:42 -0700, David E. Wheeler wrote:
>>> On Jul 18, 2010, at 1:35 AM, Peter Eisentraut wrote:
>>>
>>> > I think there are two ways we can do this, seeing that most appear to be
>>> > in favor of doing it in the first place:  Either we just flip the
>>> > default, make a note in the release notes, and see what happens.  Or we
>>> > spend some time now and make, say, a list of driver versions and
>>> > application versions that work with standard_conforming_strings = on,
>>> > and then decide based on that, and also make that list a public resource
>>> > for packagers etc.
>>>
>>> Do both. Turn them on, then make a list and inform driver maintainers who need to update. They've got a year, after all.
>>
>> Here we go then:
>> http://wiki.postgresql.org/wiki/Standard_conforming_strings
>
> Looks like a good start.  We might want to make an "open items for
> 9.1" page and, as a first such open item, add a link to this page.
>
> Since it seems we have consensus, I will commit the patch.

So it turns out that (at least) the hstore and ECPG regression tests
depend on the default setting of standard_conforming_strings. I have
taken a crack at fixing this...

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


From: Marko Kreen <markokr(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: "David E(dot)Wheeler" <david(at)kineticode(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-20 10:31:43
Message-ID: AANLkTikihORDtRKaxi9UiIUoqAqFJ4F7t2QdfGQmGMK0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 7/20/10, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On sön, 2010-07-18 at 09:42 -0700, David E. Wheeler wrote:
> > On Jul 18, 2010, at 1:35 AM, Peter Eisentraut wrote:
> >
> > > I think there are two ways we can do this, seeing that most appear to be
> > > in favor of doing it in the first place: Either we just flip the
> > > default, make a note in the release notes, and see what happens. Or we
> > > spend some time now and make, say, a list of driver versions and
> > > application versions that work with standard_conforming_strings = on,
> > > and then decide based on that, and also make that list a public resource
> > > for packagers etc.
> >
> > Do both. Turn them on, then make a list and inform driver maintainers who need to update. They've got a year, after all.
>
>
> Here we go then:
> http://wiki.postgresql.org/wiki/Standard_conforming_strings

There is two sorts of support:

1. Detect stdstr on startup and use that setting.

2. Detect online changes to stdstr and follow them.

AFAICS psycopg does not support 2). Should we care about that?

There are probably other drivers with partial support.

--
marko


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Marko Kreen <markokr(at)gmail(dot)com>
Cc: "David E(dot)Wheeler" <david(at)kineticode(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>, Alex Hunsaker <badalex(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: standard_conforming_strings
Date: 2010-07-20 19:34:00
Message-ID: 1279654440.2841.32.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On tis, 2010-07-20 at 13:31 +0300, Marko Kreen wrote:
> > http://wiki.postgresql.org/wiki/Standard_conforming_strings
>
> There is two sorts of support:
>
> 1. Detect stdstr on startup and use that setting.
>
> 2. Detect online changes to stdstr and follow them.
>
> AFAICS psycopg does not support 2). Should we care about that?
>
> There are probably other drivers with partial support.

I think a driver could also just use E'' when it sees a backslash in the
string.