Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sGgdQ-00FwwU-P6 for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2024 15:08:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sGgdP-00DLFP-9Y for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2024 15:08:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sGgdO-00DLFH-V0 for pgsql-general@lists.postgresql.org; Mon, 10 Jun 2024 15:08:35 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sGgdN-000e89-B4 for pgsql-general@postgresql.org; Mon, 10 Jun 2024 15:08:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 45AF8Vti730018; Mon, 10 Jun 2024 11:08:31 -0400 From: Tom Lane To: Ron Johnson cc: pgsql-general Subject: Re: Escaping single quotes with backslash seems not to work In-reply-to: References: Comments: In-reply-to Ron Johnson message dated "Mon, 10 Jun 2024 10:59:22 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <730016.1718032111.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 10 Jun 2024 11:08:31 -0400 Message-ID: <730017.1718032111@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > On Mon, Jun 10, 2024 at 10:56 AM David G. Johnston < > david.g.johnston@gmail.com> wrote: >> As the caution on that page says the default for standard conforming >> strings changed in 9.1. But maybe your 9.6 had the old value configured but >> when you upgraded to 14 you decided to go with the new default. > That was the first thing I checked... It's the same on both the 9.6 and 14 > systems:. Did you check that as the user that runs the Java app (I sure hope it's not the superuser you evidently used here), in the DB the Java app uses? I'm wondering about per-user or per-DB settings of standard_conforming_strings. regards, tom lane