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.96) (envelope-from ) id 1vWfuG-007ADp-0Z for pgsql-general@arkaria.postgresql.org; Fri, 19 Dec 2025 19:12:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vWfuF-008sQU-0O for pgsql-general@arkaria.postgresql.org; Fri, 19 Dec 2025 19:12:51 +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.96) (envelope-from ) id 1vWfuE-008sQM-2Z for pgsql-general@lists.postgresql.org; Fri, 19 Dec 2025 19:12:51 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vWfuE-001YQB-0G for pgsql-general@lists.postgresql.org; Fri, 19 Dec 2025 19:12:50 +0000 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-455bef556a8so1346220b6e.1 for ; Fri, 19 Dec 2025 11:12:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766171569; x=1766776369; darn=lists.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=aaWMbLAna2GIbNGSW+ug02wfjDQog9hwUoRj6qKmPMM=; b=T48LxvIoXU+sPCN0SzdhnfD0mxxlrjYZHcxGZX0SvkujguU/7Io38SqEx+RXxAxNYF Nbv79qz3IAN0tzFzREtXytIug1P1ViibByqqcCv5kKivrZiTFlVLmQbYJkJ8XEfH84pT BaHji7P+q+9vsHDzTSNfq3oXDsivjSaeDrDGTRytzVPsFd1iV47kc0F1a4iIGSWBatKA wsQTrqTVAvsPQkjD21Phe1JNASzzUBBnX/RGkaausprNfrIuPjzm+nwiT/A907q5qYzg GxwSjY3jDa8vNYhLOdETeJMN7mSQv1x7Mr1S9hx7pRbvbiz3JpvQZfd0HT09/qhSDeRw OuVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766171569; x=1766776369; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aaWMbLAna2GIbNGSW+ug02wfjDQog9hwUoRj6qKmPMM=; b=DwI8Jcurk6zVcz0hn6Hb+igo3sUJJVqqXnL99pna7fq/y6b0Lo3vYnpre4zASbaY1l 7PJd6SC4MiBJkoRKR8I59Skc9LLJnTKOwBl29aA4fkGl0bEsH5FkGNT8oZUj+tJ8t6XW 1IbvA7XZXtK31Q7GhnyKYtvgrxydtRS2dJX8zSZ3AXydNz0lo1xLAWadL+4kg8L52Er6 hwx5Ljpq/4c2/6t7gHekBOnyMPSOM6WMozwSrYlKmJgjMp+gKReS1key4cMFPqF57nuP 33VSWpDY0iAOSJK6HwSCfimMm7YeuX1+46AgU3r9XVdijlI+Z+3GbmksuN3hD4c3sY85 EUjw== X-Gm-Message-State: AOJu0YxySJ10QDdhSh/I0v7kLISCapbd3gr9RxBiDkVD2mqLLy6y1dEa XH8NT9jwGUCO99edqjIeuwC0y47D2fVd3Jv9c/9NlYxwIPOzF/wS56tesDyJh2FRooilglARCTO DozBkveBHoA0cO4wW8NFZqXOw/ayAxj1Arw== X-Gm-Gg: AY/fxX55kFPxERi8qQBoByY2k/GeswvYh3lf8zaPsCpBipfGzO0vtKLkMkwiGwFMzKM hvsQeeojNOxwGyac+LYgejOWBGgm2JwYnffYfFkfnaXbVJUGhnzvzHkAqmPfMZV7Ag7lGbFdB7G Cg0AfWTCEt9f7eGUYQOzoeRxdrFRIUAkU8Mx74JDAFlVR2KNubgy+zEknmvZusKrlE7Elqi7HZE 4X+FD3n2nmuR3L7upUe8qaMX6etmgFbjVdhJmyhQwQNoB46tZ9jROFzl7pH2V/wNxsOU0ak X-Google-Smtp-Source: AGHT+IE9wukaT0rm8iuszRJHmsdsXlhvcLS5Y18PE0tM9jWXLkO/qhf5k3IXGDIXhCVLzSQb4jOSgZEygOvD2aON9qs= X-Received: by 2002:a05:6808:2224:b0:44d:a4d3:b6a6 with SMTP id 5614622812f47-457b20cd549mr1997176b6e.35.1766171568799; Fri, 19 Dec 2025 11:12:48 -0800 (PST) MIME-Version: 1.0 References: <2547700.1765940917@sss.pgh.pa.us> <9a0ce31a49f149d8d982d2b359095560655f781e.camel@cybertec.at> <3360047.1766170334@sss.pgh.pa.us> In-Reply-To: <3360047.1766170334@sss.pgh.pa.us> From: Ron Johnson Date: Fri, 19 Dec 2025 14:12:37 -0500 X-Gm-Features: AQt7F2rdUrourZA4sJzQbwoRi63sfxXGHh0d6bWwj00pSiRoyZ1Znq1Wu9lOhxI Message-ID: Subject: Re: Fwd: PQexecPrepared() question To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000f88307064652dce8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f88307064652dce8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 19, 2025 at 1:52=E2=80=AFPM Tom Lane wrote: > Igor Korot writes: > > But what is the purpose of setting client encoding on the server? It is > for > > the client > > No, it's to tell the server what encoding to transmit to the client > (as well as what encoding strings coming from the client are in). > If there's an encoding mismatch between the server and client, does "something" (like a PQ driver) convert text in the data stream from the source encoding to the target encoding? --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000f88307064652dce8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Dec 19, 2025 at 1:52=E2=80=AFPM T= om Lane <tgl@sss.pgh.pa.us> = wrote:
Igor Korot <ikorot01@gmail.com> writes:
> But what is the purpose of setting client encoding on the server? It i= s for
> the client

No, it's to tell the server what encoding to transmit to the client
(as well as what encoding strings coming from the client are in).

If there's an encoding mism= atch between the server and client, does "something" (like a PQ d= river) convert text in the data stream from the source encoding to the targ= et encoding?

-- =
Deat= h to <Redacted>, and butter sauce.
Don't boil me, I'm sti= ll alive.
<Redacted> lobster!
--000000000000f88307064652dce8--