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 1vXLSL-0083Sg-0y for pgsql-general@arkaria.postgresql.org; Sun, 21 Dec 2025 15:34:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vXLSK-00Bu1v-0M for pgsql-general@arkaria.postgresql.org; Sun, 21 Dec 2025 15:34:48 +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.96) (envelope-from ) id 1vXLSJ-00Bu1n-0B for pgsql-general@lists.postgresql.org; Sun, 21 Dec 2025 15:34:48 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vXLSG-001vaZ-0x for pgsql-general@lists.postgresql.org; Sun, 21 Dec 2025 15:34:47 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 047271400051; Sun, 21 Dec 2025 10:34:41 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sun, 21 Dec 2025 10:34:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=1766331281; x=1766417681; bh=0O8Mxd5BcuZ7YwGYg42DUMScDHz96OGXAQpSm9o3mB0=; b= KVFJXueqOQJ7FoInf24oKXEY50hebDSHzSBmGL5ZpsMEa/zSa9oiQktNQNqIRTeg S567EUA8YCwzEsUEZ04qEby2kF0PfXwBvDSt1vpVWhiW71m62sYf0wr3tv/RQLfd shO1kn6r3X6N3VvfJDP57bC8UC6Q1fhouRFGDIZLQfddIlHXRpma2uly0ffOgExB +2phAziORkc9JAOmBGmeFxOI439NdXFrLoATlObzvA4xtenlUfdmBfVMnNI5YN5B SeRGWY/x34SPG7z/35oxEKxTisPfzFPyXo9Wz7CPXne8BDALe30my5FOicC5Y7iG MQKH0+ogWdbD9bYY0nvE/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1766331281; x= 1766417681; bh=0O8Mxd5BcuZ7YwGYg42DUMScDHz96OGXAQpSm9o3mB0=; b=U xxi/TuGGVPfYsTqf2GzXQ4lH6VUdiAfnpYDrDQQuyLcw8zQd8cdn2jc2V3PwERef R8yMCD0hsSJM2DSEUMcPFxNWxSM6tbQUtFlDA2/PwOitLMRA84gxcBq1KTFVR1pv XOEjhGjcZ+ROPCRFHsucvBAbRFkRRMEUf1A9fP7M9en1vgu+GsLeI1owsDqhlrEv 98LVhA0xGiPCQdOzOY2zAeNT33vXInABfgS8YyaUU55B9h8Bl6cqXNSZIMMwp+0b BROxKChcXGMkKFVAwjIkuaXJryFK49ci2HNKiPhEIVtuQerq53lXJGT9+kKspZBl T15h4E5pfio/msUHfep3w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdehgeeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeefgeefieeutdfggfetgefgheekjeehteeileeigfetieek jedvieeviefgheevtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggp rhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehikhhorhhoth dtudesghhmrghilhdrtghomhdprhgtphhtthhopegurghvihgurdhgrdhjohhhnhhsthho nhesghhmrghilhdrtghomhdprhgtphhtthhopehlrghurhgvnhiirdgrlhgsvgestgihsg gvrhhtvggtrdgrthdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhs rdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 21 Dec 2025 10:34:39 -0500 (EST) Message-ID: <699b6649-6841-48a7-8182-b92d28a70ff7@aklaver.com> Date: Sun, 21 Dec 2025 07:34:39 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PQexecPrepared() question To: Igor Korot , "David G. Johnston" Cc: Laurenz Albe , "pgsql-generallists.postgresql.org" References: <2547700.1765940917@sss.pgh.pa.us> <9a0ce31a49f149d8d982d2b359095560655f781e.camel@cybertec.at> 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/21/25 03:56, Igor Korot wrote: > Hi, David, > > Attached is a script I ran on a server (from psql). > > The offending line is: > > CREATE TABLE abcß(id integer primary key, name text); > > Script ran successfully. > > Using the ODBC driver everything works. I didn't change anything in > the driver setup. > Same setup - Windows client connecting to Linux server. It is not the same setup, in your original question you are hand writing code not running a script through the ODBC driver. Best bet is the ODBC driver is picking up the client(Windows) encoding and passing it to the server. Crank up the logging on both ends, the ODBC driver and the Postgres server and see what is hitting the server when you use the driver. > > Any other info needed - please do tell. > > Thank you. > > > On Sat, Dec 20, 2025 at 11:47 PM David G. Johnston > wrote: -- Adrian Klaver adrian.klaver@aklaver.com