public inbox for [email protected]  
help / color / mirror / Atom feed
From: Andrew Dunstan <[email protected]>
To: Tom Lane <[email protected]>
To: [email protected]
Subject: Re: Can we remove support for standard_conforming_strings = off yet?
Date: Wed, 31 Dec 2025 11:02:36 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>


On 2025-12-30 Tu 5:50 PM, Tom Lane wrote:
> I wrote:
>> standard_conforming_strings has defaulted to ON since 2010 (see
>> 0839f312e in the 9.1 release).  I propose that it's finally time to
>> force it on and get rid of code that supports the "off" setting.
> Here's a draft patch series for that.
>
> As I was working through it, I realized that there's one
> potentially-nasty point that might cause upgrading problems.
> To wit, pg_dump and pg_dumpall have historically replicated the
> source server's standard_conforming_strings setting into their
> output: they emit a SET command for that, and any string literals
> appearing in views or the like will be escaped accordingly.
> So if your old installation had standard_conforming_strings = off,
> and all you have from it is existing pg_dump output (either text
> or archive format), you are in a sticky situation because that
> dump will not restore cleanly.  This isn't impossible to get
> out of, but you'd probably have to stand up a pre-v19 server,
> restore the dump into that, and take a fresh dump made with
> standard_conforming_strings = on.  The alternative would be
> manual correction of literals in the dump script, which seems
> far too error-prone to be recommendable.


Have we ever promised that dumps made using pg_dump/pg_dumpall from 
other than the target version work?

I don't see this as a big issue, unless I'm misunderstanding.


cheers


andrew

--
Andrew Dunstan
EDB:https://www.enterprisedb.com


view thread (7+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Can we remove support for standard_conforming_strings = off yet?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox