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 1vXDS0-004PtD-2T for pgsql-general@arkaria.postgresql.org; Sun, 21 Dec 2025 07:01:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vXDRy-00BKPv-11 for pgsql-general@arkaria.postgresql.org; Sun, 21 Dec 2025 07:01:55 +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 1vXDRx-00BKPn-2x for pgsql-general@lists.postgresql.org; Sun, 21 Dec 2025 07:01:54 +0000 Received: from mail-yx1-xb12e.google.com ([2607:f8b0:4864:20::b12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vXDRw-001m8a-2I for pgsql-general@lists.postgresql.org; Sun, 21 Dec 2025 07:01:53 +0000 Received: by mail-yx1-xb12e.google.com with SMTP id 956f58d0204a3-64661975669so2999316d50.3 for ; Sat, 20 Dec 2025 23:01:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766300511; x=1766905311; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xDYIUJwtMxV804DJB19Cx/DSeJSThRe9DPqr2VERj9A=; b=dChcZcah+7Pp0654hEh7sHOH9tDs6Vqeo2ms6T1bPjielQlHC8+TE86KoAl9PAACFN 1Cc//hwZ7iev4I7xto0dhcLewQUkZg39xIOca/wCARc8LC/18O7PitOcG/+XUq6TwOwj XRG7QQhSvTNphMuxpC2LE5F+jDTE/MjQ3RoGi6MuSbEs5h5w20w3BkLeJW3gV85zvh5R B/OGFMq0g4VeSsYGEw5PUn98leB+d3Vb1YE8BqcGMz7fanSfdMPtnqtWTAHEBH2Cmhjp 0zQ2wFp4YEIGgIB1fJxqr4W0dLEU76czOS7CQHHeJWuAgRpzVArm+CvwjEZUCHLirRYq PXig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766300511; x=1766905311; h=content-transfer-encoding:cc: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=xDYIUJwtMxV804DJB19Cx/DSeJSThRe9DPqr2VERj9A=; b=QGGLGu73aHgXhhh+Ufhkp1UyZcDimBHMCNrDo8TK++CKyaCQc4pZzfTOSKyDLLJf/6 VnMdsDYe90GfrJx7UiOn3gdxFH06lwT5h+7wI/tmG1xJ0i5hxUJcIlwrBNZmx5WW1bSE wMGsFFfVuOnvOz9YC6dIHYGTSgFD3GAOYfGJDFkodq33ue9zIXIT6yQiTU22tWyrKIEh yhRu5+296DVQpkTOZqqmHG3hgQEGvA1LDhXYeict0L04YE4XSP1s7Z8fd+Jq470gD7Wl oSZZgL2o1MkvYmgl7IwjN+flRuyG9R5asvfMG0sBvIb6WBJ8WXtMgPE5of5O1amxQkDg 9vEw== X-Forwarded-Encrypted: i=1; AJvYcCWgYfOvco/klE8MiGPkMO9iFCbITNjYO67pdk/OqdsXCc9ffs2TdYssaarw6bXzL21SeuaAawZt6C1Lcl/R@lists.postgresql.org X-Gm-Message-State: AOJu0YxYEloSsF5NYFu70xQWN1J9W46hshTPDZxTT/03D2rHjMw2M79R gz0jpYAcvzExsQbnRB6cG1q9xHv2a8w0tc0BxKxQOZ2FYKytDYVXTi79sbup9g1PoTgZLFv+t0H ja8cMOuMsj45IVM/t7zA/Ib+l3yPRhTA= X-Gm-Gg: AY/fxX4xW1fg5ydA+HAzXL6QbwQz6Z4ytJ7QUsuMPTl2eOKUgiVweGuPTMvyq/y/p/b vpKZH4AeoNboTUVS2mCwVGQtrObPJW9Olt5EUcugYwWB9cqIyDYCqBdm9AYaKIHOP1sbRH5wQn7 ZTPVEZxwk9heXxlC2Il52MdH5a1u4IYYM/U8m9F7KNgbJQwNsxJvil3jrm5M1Cn0Ojn/ptIQGyQ E2zebqtxFAUJOLWOL8kucLdonIvU+WzIkKBkrA8lftNa7q5mYkQt6LCmTcgT50bBFiI0d/x61qx CICJ93hADZR7wPa5VKDM0Q5lPWQ= X-Google-Smtp-Source: AGHT+IET3MN/i1C0+6tA0I2XLSYqgAUDx0IlIZzV2HiOYevjMW+UNFXGI0WaLgZGI5U/PEUeYWD73M9gZu4JZTjWUIw= X-Received: by 2002:a05:690e:e8c:b0:63f:bc75:6ead with SMTP id 956f58d0204a3-6466a87efe9mr5672359d50.9.1766300511384; Sat, 20 Dec 2025 23:01:51 -0800 (PST) MIME-Version: 1.0 References: <2547700.1765940917@sss.pgh.pa.us> <9a0ce31a49f149d8d982d2b359095560655f781e.camel@cybertec.at> In-Reply-To: From: Igor Korot Date: Sat, 20 Dec 2025 23:01:38 -0800 X-Gm-Features: AQt7F2oDNnRDODvhJYyE76SnuXqga5X5xDbHnzbyFe5XHZPvIMXQLnEex5YlgCw Message-ID: Subject: Re: PQexecPrepared() question To: "David G. Johnston" Cc: Laurenz Albe , "pgsql-generallists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Below is my select statement: SELECT t.table_catalog AS catalog, t.table_schema AS schema, t.table_name AS table, u.usename AS owner, c.oid AS table_id FROM information_schema.tables t, pg_catalog.pg_class c, pg_catalog.pg_user u WHERE t.table_name =3D c.relname AND c.relowner =3D usesysid AND (t.table_type =3D 'BASE TABLE' OR t.table_type =3D 'VIEW' OR t.table_type =3D 'LOCAL TEMPORARY') ORDER BY table_name; and INSERT statement: query7 =3D L"INSERT INTO \"abcattbl\" VALUES( 0, $1, (SELECT c.oid FROM pg_class c, pg_namespace nc WHERE nc.oid =3D c.relnamespace AND c.relname =3D $2 AND nc.nspname =3D $3), \'\', 8, 400, \'N\', \'N\', 0, 1, 0, \'MS Sans Serif\', 8, 400, \'N\', \'N\', 0, 1, 0, \'MS Sans Serif\', 8, 400, \'N\', \'N\', 0, 1, 0, \'MS Sans Serif\', \'\' ) ON CONFLICT DO NOTHING;"; Thank you On Sat, Dec 20, 2025 at 9:47=E2=80=AFPM David G. Johnston wrote: > > > > On Thursday, December 18, 2025, Igor Korot wrote: >> >> >> Using my setup above and assumng my Win locale is en_US.UTF8 > > > This seems like an incorrect assumption. The server is expecting UTF8 yet= you are passing it data that is not valid UTF8 bytes. I infer thus your W= indows encoding is thus not UTF8. > > Suggest you make an even smaller, simpler, and self-contained reproducer = and include how you are executing the code. You=E2=80=99ve not provided su= fficient detail for someone else to debug your problem. > > David J. >