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 1vWhvX-007y5d-1K for pgsql-general@arkaria.postgresql.org; Fri, 19 Dec 2025 21:22:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vWhuX-0093hy-0K for pgsql-general@arkaria.postgresql.org; Fri, 19 Dec 2025 21:21:17 +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 1vWhuW-0093hq-09 for pgsql-general@lists.postgresql.org; Fri, 19 Dec 2025 21:21:17 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vWhuU-001ZGl-1A for pgsql-general@lists.postgresql.org; Fri, 19 Dec 2025 21:21:15 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id AD6847A003C; Fri, 19 Dec 2025 16:21:12 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 19 Dec 2025 16:21:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1766179272; x=1766265672; bh=85s4gG80ULN53sd2RvACFE741PUwTzJOKhNZsCq5lo0=; b= fHXcWWENgdn3666f2UIaFHzTOHQ4D0/hmLPy38ClrlCJ6fqZiAhfovoyNGBmOsYJ nRftqieb2IKMDC00RTDdCuWpb2bkk5+8gJpBm2GSQNctT5Re1K7h+eBgQuqxWL07 CIWrcBEeS2/sJM+oi3hIS4rWqJHDmxJvcXNN3vFFaBxlbxQPONiB3Vke7kYep+TR CNKe/xre/8DD4e6hXmu0gbq+OymmpbT1Uhwsu6vccC1Mt6VhcT0FeTxARqSWEDVY 5hIGwbV8I5DmtjA2fndIe531OY0cssPvR6kxDsYlxJHG18m9il9LdgA/CAp41Hfl RajvwhDi2VfEP65kmElbJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1766179272; x=1766265672; bh=8 5s4gG80ULN53sd2RvACFE741PUwTzJOKhNZsCq5lo0=; b=Sim3uxTgMmhk9hmV1 r2GgkL+ajCt5TF7z2Uz+93xS9+JtZToFjct12MUvLqxKsZ07VsVJwrh72xkFcvBa 9S+h8v8SjBj+Dlz0YBnAaWZ4CoWjpmA58UlIsy9uEIsMXdURX+p5nYapstaaunPN eHYdnjKjMEmKf8loaQDNcka9HM7+XBYo1jMS2m1/beJAhl2XkudYu8SHrNhhU3k7 wicF0N/baAnd5QMm9oRj9OvIGes9qygXTSXEUdFXTMnRUHMRGkutIXNK3o7TzS1t yeJknUPu5hR+GVW90dJSQce5lhGpjSjry1aDFK8ediNAFgyNMtNXfEIrtO+8hPQl bCKlg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegleefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgrnhcu mfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqne cuggftrfgrthhtvghrnhepleegveekkeekueeigfdtveeileeuhfefudefteekjeffkeej ueejheegheegkedtnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvg epshhmthhpohhuthdprhgtphhtthhopehrohhnlhhjohhhnhhsohhnjhhrsehgmhgrihhl rdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhosh htghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 Dec 2025 16:21:11 -0500 (EST) Message-ID: <952d0035-237c-415e-8505-24939821cd56@aklaver.com> Date: Fri, 19 Dec 2025 13:21:11 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: PQexecPrepared() question To: Ron Johnson , "pgsql-generallists.postgresql.org" References: <2547700.1765940917@sss.pgh.pa.us> <9a0ce31a49f149d8d982d2b359095560655f781e.camel@cybertec.at> <3360047.1766170334@sss.pgh.pa.us> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/19/25 11:12, Ron Johnson wrote: > On Fri, Dec 19, 2025 at 1:52 PM 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? It is explained here: https://www.postgresql.org/docs/current/multibyte.html#MULTIBYTE-AUTOMATIC-CONVERSION > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster! -- Adrian Klaver adrian.klaver@aklaver.com