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 1sGgoJ-00FysL-UI for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2024 15:19:52 +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 1sGgoH-00DRRr-2d for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2024 15:19:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sGgoG-00DRRa-Nr for pgsql-general@lists.postgresql.org; Mon, 10 Jun 2024 15:19:49 +0000 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sGgoF-000x94-Fo for pgsql-general@postgresql.org; Mon, 10 Jun 2024 15:19:49 +0000 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-2548c80efc6so1021652fac.0 for ; Mon, 10 Jun 2024 08:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718032786; x=1718637586; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=ajHoe6BVfehuv5FU3NLyhV39svcFN7LI3h45GrqSXP0=; b=eE+n8Dfn5RbP0CgX7vBk3bUwNQkdx9WOIyGuNv4FqEbF2S/+SH/9eO7RaIpyMqcM7n gL32TkudXKTkMLrCs5xxZ4mOLZ0okmgCKZXJH5dT/QZX4qIrAnHpdclPL60haCuvbVnw A6Zs6l+aj4MEFHeKJTuxvXX7FXBK/3alazFpBBNoMsVZoxiMHZtwanzzTSpbnC0Pgh/4 YSeByUzbN7WigPQaf9Uq3asLFPXsp7fxxJbwf9JdLRY6+Ew0fHqmnG8InGXURKTw+t3t wflXhqRh7PBSSO9IOHFVI+gnHiHaOIM6JNsxk/w4WQ9jMOq5v4ogrjmAa2PxAqF0Cc8q TZ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718032786; x=1718637586; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ajHoe6BVfehuv5FU3NLyhV39svcFN7LI3h45GrqSXP0=; b=UaJAZbWZyEzgSexd5H2AXk1A3+rRMfQXyFJRoZBoH5VFc670DiEvbQ39K/x7TfqG1V SoUmiRXg3GLJTGUjp6H30mOtCO/n4YBU+IFj8oilkAtOKHvZaKf+dErCb2FKbjT05zBj K6v4se1p01FS/97P2Jwgz/Q17ARStMH/Tj57SVPYr8MP4Kd7ZuMVl/ysN2qRGDxFDIGW 5bQMrgSFElwiOFqpFWH7wibn2TndTmuqfsmwn+WfzwcG9S3hLkTkWf0VisWA18AAaoQi UHNBa4BDRzdvH6tkJ/TvMDEbHDaGGTi0SE51DxJ9RWJMQPdkD16CRwCwtFqfjwhypqWR zFZg== X-Gm-Message-State: AOJu0Yz3q5EWigu7ZbN57r+SadR7sL9LzRd2eKTxuBBqXNaAI3J1rtxr YY1FSNK55KM31oL9xcZhRQZ+DU71nMeCAqUuER+GCwlpWE0dmMsEoybJT/Vaq+cEi3ipeyuwJyT yxeP+DduTAUOSxGTrMqyaLws0LZQXxIF1 X-Google-Smtp-Source: AGHT+IHGAH5JKErHjhprxLxCsgMI+nGcUevq94lvEah2pgNdZPx3VXcLMY5ZzV8ce1jVGaRU7qXryK9rEDfwIwkZve4= X-Received: by 2002:a05:6870:889d:b0:22a:57da:6fec with SMTP id 586e51a60fabf-254404bf430mr6503581fac.16.1718032784377; Mon, 10 Jun 2024 08:19:44 -0700 (PDT) MIME-Version: 1.0 References: <730017.1718032111@sss.pgh.pa.us> In-Reply-To: <730017.1718032111@sss.pgh.pa.us> From: Ron Johnson Date: Mon, 10 Jun 2024 11:19:32 -0400 Message-ID: Subject: Re: Escaping single quotes with backslash seems not to work To: pgsql-general Content-Type: multipart/alternative; boundary="000000000000d3504b061a8aad93" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d3504b061a8aad93 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 11:08=E2=80=AFAM Tom Lane wrote= : > Ron Johnson writes: > > On Mon, Jun 10, 2024 at 10:56=E2=80=AFAM 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 configure= d > 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. > It's a remote Java app which runs as a non-superuser. I don't know what it's doing. I ran "pg_dumpuser -g" on the old systems, and applied the sql to the corresponding new servers. "set standard_encoding_strings =3D on" is at the top, and there's no other reference to it. --000000000000d3504b061a8aad93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jun 10, 2024 at 11:08=E2=80=AFAM = Tom Lane <tgl@sss.pgh.pa.us>= wrote:
Ron Johnson <ronljohnsonjr@gmail.com> writes:
> On Mon, Jun 10, 2024 at 10:56=E2=80=AFAM David G. Johnston <
> david.= g.johnston@gmail.com> wrote:
>> As the caution on that page says the default for standard conformi= ng
>> strings changed in 9.1. But maybe your 9.6 had the old value confi= gured 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?=C2=A0 I'm wondering about per-user or per-DB settings of
standard_conforming_strings.

It's a= remote Java app which runs as a non-superuser.=C2=A0 I don't know what= it's doing.

I ran "pg_dumpuser -g" = on the old systems, and applied=C2=A0the sql to the corresponding new serve= rs.=C2=A0=C2=A0

"set standard_encoding_string= s =3D on" is at the top, and there's no other reference to it.

--000000000000d3504b061a8aad93--