From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | Josh Kupershmidt <schmiddy(at)gmail(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | string escaping in tutorial/syscat.source |
Date: | 2013-01-16 01:35:15 |
Message-ID: | CAMkU=1zz8gG=_CK+BU3+NDzTyZ9qwkO4c5kJqkUmz6Z7jBvdmA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, Oct 14, 2012 at 8:53 PM, Josh Kupershmidt
<schmiddy(at)gmail(dot)com<javascript:;>>
wrote:
> Hi all,
> It seems the queries in ./src/tutorial/syscat.source use string
> escaping with the assumption that standard_conforming_strings is off,
> and thus give wrong results with modern versions. A simple fix is
> attached.
Hi Josh,
Do you propose back-patching this? You could argue that this is a bug in
9.1 and 9.2. Before that, they generate deprecation warnings, but do not
give the wrong answer.
If it is only to be applied to HEAD, or only to 9.1, 9.2, and HEAD, then
this part seems to be unnecessary and I think should be removed (setting a
value to its default is more likely to cause confusion than remove
confusion):
SET standard_conforming_strings TO on;
and the corresponding reset as well.
Other than that, it does what it says (fix a broken example), does it
cleanly, we want this, and I have no other concerns.
I guess the src/tutorial directory could participate in regression tests,
in which case this problem would have been detected when introduced, but I
don't think I can demand that you invent regression tests for a feature you
are just fixing rather than creating.
Thanks for the patch,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2013-01-16 01:35:42 | Re: Curious buildfarm failures (fwd) |
Previous Message | Andres Freund | 2013-01-16 01:34:52 | Re: Curious buildfarm failures (fwd) |