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 1vrdX5-00FVNj-3D for pgsql-bugs@arkaria.postgresql.org; Sun, 15 Feb 2026 14:55:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vrdX3-001j1b-09 for pgsql-bugs@arkaria.postgresql.org; Sun, 15 Feb 2026 14:55:33 +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 1vrdX2-001j1S-2V for pgsql-bugs@lists.postgresql.org; Sun, 15 Feb 2026 14:55:32 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vrdX0-00000000oCe-38B1 for pgsql-bugs@lists.postgresql.org; Sun, 15 Feb 2026 14:55:32 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-7d18c654458so969440a34.3 for ; Sun, 15 Feb 2026 06:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771167328; cv=none; d=google.com; s=arc-20240605; b=WTUKQ8Q3N3LgzsFr4yEYgfmfygiBopOJ1gOs7tIngbWYzLEblquTVATAmLujvn8z43 WV9je7l0TS36pLmvU2rmXS7c0x4gGxBsmSV1HDWIe4E/VOz3Y7zjGV9tApIM8ibXo/nM lVVUOpNjE5+EVl8i3dAtPvyF9GukL2E0hTzAAyIn3NMlvv8pe2/VcXIa4tUuEy9hzKHU g2AiKbten69J3+gmvmwEBhill7/C/KNudB7jfUiza14TkSEag7PHtWldGO8mmtAa8PfV 43ivtDnawX7djAD2xejUFlfXD4rXzIj5wfAmNx+K88ynnC5MzOWLpHc6+01gPwX20+6G ojjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :dkim-signature; bh=1IoXDdt6vAT4lh4xQ/7y90klqRtHarDqBNBN0mARgkw=; fh=QphQK93Kl+k2O/xVTrikqWuP0KXR2lIkpj8I75zHsT4=; b=QgWZsYa+Dzq9thCgDiiNRd+idKFYE1FD3leZOvSlhqkJCkC8q1GQyMo0hrzFby2a3b e9yFRBD9IfLC+Lo5/KGFDCOGQa3wlQxj0N+gcuTXcZY35PnN9Rfzy9sK+FUM/pjKkr4a 3hxKUpK91RSXewtxxGfEGdcgbHXoHG5CXZ2M4ZNvFwn/TZqLpst5dFC1jjir/2yLSCxI 8wTPQNSPNWGNRLfPgmtX3eNfz5dAstV9W9XiqqQkC947l8R74cPhcDny90MQ2PGF4Z2c BzoH5jSXSahMQYixoWDTG9PxYxI2RJEj88RxL6Y2T6HhG44vSLpq0ppYT7nUWcIMNcYC +ZGw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771167328; x=1771772128; darn=lists.postgresql.org; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=1IoXDdt6vAT4lh4xQ/7y90klqRtHarDqBNBN0mARgkw=; b=grHSBzRvBRW32kqRkzdp41yq/GdgADgQQp3J+dhnYOhwJbdfCMxibJ6BE6bInD8Xps H6G55dwEhEqvLQVn1o2KfHQHHzutk0f1xoICnlTIThrBHZUcJLjPoUDUtMyDrOUpniFF 2fhIn8BKW8O2++ozwTNOpZbf5F29FQbmOPhtIqnyrvkanHlTHyzzzf5Xy/L/wblHEyfn wuuC2bwPp6Z+7mLn/Z2Ylp4amNCvH+pMbI7XrO7bmSTbISoggOFBREIm/gSLliTafWsj awUoIVLQK2l2U5R0YSlNfSgfbjb7is5JfyLzo5c4H4RKqElRI3fw+ZYXtKdFWkzS7S2K J5dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771167328; x=1771772128; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1IoXDdt6vAT4lh4xQ/7y90klqRtHarDqBNBN0mARgkw=; b=qRaoQFH3DiNsX5OvYnwq3GlZdeNyeqTCZrh1WjlNUI3OH1Q0S7vTd5GlnAyQWBmzmp xnmP5/vgpxuTczZw3+/KVJZxNIqUHsq0kGt018SAmeD8L7WKWhXB28Pt9+5Yo+Oazj2U djlBEKkQilVSzUtwYu//bhR1ZjmOhg4jtMqVWieC7aQDlxY3eS/ug1yynaeQtEPVmtbR uUP5HhiaLxl4dVFW5wgJIqoRpOopnBwPPkXlJGf3OfRewmte04P9aev98ZBzRsikY7AA LEA4dzUAd1Vp2kaPiovF8/dEh70zhi2Roomprl6lN6FXI/m5NGI10RNGs412jPBFMs8e aAVA== X-Forwarded-Encrypted: i=1; AJvYcCVYTbZsa8NhZwBdkTq8rHRvuSMkY2OmU4IVMH2HjiG2oHbKsChJPJLQl1f53yFPEUqIk2iGvQdPHIsV@lists.postgresql.org X-Gm-Message-State: AOJu0Yyr0y/2/vRqSeoZbAowa3GTTFImlWhP9cMh+X3x1tCNIP/sXvbV XgS9E3aRcSs463eQl45JEqC5DsQWuZFcoQLfqeuIcAHTZjkVpSrh6rv0d6ypxYd+N8U3cZInG3F WAOFCivscQVGvwnaUfhor8zlgFk/XBUw= X-Gm-Gg: AZuq6aKHDwQyvjvQ+ovCw5ev6GZtfnOt+QY7oYG4CcfVus6hx7on618L1XSiQVROQLf ZHYUBpmUcH5H6VcGt7NpvMquldAWncnVgZHRSf+NiLjrpVqzT3A7qiUioDWkNiN9whGQtv6IpAU D8b41Cc/FGKFAygDF2ZC+JXUmhl0yyHG59Vt93pwXg0bGecrIwUK4pLWXob1vWVp6CIOM4KG0WY +NlRC789dS1NgrVsVMYfm8G4ZQJUejRFBXVharkNMJr/kkYdfs4bRL3jSgWUmkBf3PYQ30/PxIl GK2yzxY8 X-Received: by 2002:a05:6808:178b:b0:45e:6697:b7cd with SMTP id 5614622812f47-4639f055562mr3871535b6e.20.1771167328054; Sun, 15 Feb 2026 06:55:28 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6802:4689:20b0:619:bb02:7065 with HTTP; Sun, 15 Feb 2026 06:55:27 -0800 (PST) In-Reply-To: <19410-ae5020230ee6369b@postgresql.org> References: <19410-ae5020230ee6369b@postgresql.org> From: "David G. Johnston" Date: Sun, 15 Feb 2026 07:55:27 -0700 X-Gm-Features: AaiRm51IJ_EOPMU7bWGO5i_lJPDrVb7gZe_zOMi76GNjqtSI5zwgIMM9Pqv7G6A Message-ID: Subject: BUG #19410: Cannot ser client_encoding To: "615695028@qq.com" <615695028@qq.com>, "pgsql-bugs@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000006d323f064ade073f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006d323f064ade073f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, February 14, 2026, PG Bug reporting form < noreply@postgresql.org> wrote: > The following bug has been logged on the website: > > Bug reference: 19410 > Logged by: Guest-615695028 > Email address: 615695028@qq.com > PostgreSQL version: 18.1 > Operating system: Microsoft Windows [=E7=89=88=E6=9C=AC 10.0.26200.7840= ] > Description: > > Everything you=E2=80=99ve shown worked as expected. If you want to always use UTF-8 I=E2=80=99d suggest you figure out how to c= onfigure your client to do so. psql will then just auto-detect whatever is actually in use. It doesn=E2=80=99t really make sense to use SET with client_encodi= ng. David J. --0000000000006d323f064ade073f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, February 14, 2026, PG Bug reporting form <noreply@postgresql.org> w= rote:
The following bug has been logged o= n the website:

Bug reference:=C2=A0 =C2=A0 =C2=A0 19410
Logged by:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Guest-615695028
Email address:=C2=A0 =C2=A0 =C2=A0 615695028@qq.com
PostgreSQL version: 18.1
Operating system:=C2=A0 =C2=A0Microsoft Windows [=E7=89=88=E6=9C=AC 10.0.26= 200.7840]
Description:=C2=A0 =C2=A0 =C2=A0 =C2=A0


Everything you=E2=80=99ve shown worked as = expected.

If you want to always use UTF-8 I=E2=80= =99d suggest you figure out how to configure your client to do so. =C2=A0ps= ql will then just auto-detect whatever is actually in use.=C2=A0 It doesn= =E2=80=99t really make sense to use SET with client_encoding.
David J.

--0000000000006d323f064ade073f--