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 1wJkjJ-000Cvp-1X for pgsql-general@arkaria.postgresql.org; Mon, 04 May 2026 04:16:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wJkjH-005SCh-2r for pgsql-general@arkaria.postgresql.org; Mon, 04 May 2026 04:16:23 +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 1wJkjH-005SCZ-1q for pgsql-general@lists.postgresql.org; Mon, 04 May 2026 04:16:23 +0000 Received: from mail-dy1-x132d.google.com ([2607:f8b0:4864:20::132d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wJkjF-00000000OTL-2UWo for pgsql-general@lists.postgresql.org; Mon, 04 May 2026 04:16:23 +0000 Received: by mail-dy1-x132d.google.com with SMTP id 5a478bee46e88-2b4520f6b32so5496332eec.0 for ; Sun, 03 May 2026 21:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777868178; x=1778472978; darn=lists.postgresql.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=SYfjPmyaa96JhBP6n8juMz64+jwJBLNBNiC5bWaT8wk=; b=dXmijjNmXsUmZIcvdXhVTNY1NyokwIHly8Nbe3DHmKwMf3NPHpir5K5MiTg9mdvpWH GtJR0B7eFOnf9q5XHrm8Ldhp8rD8UgOjY25uTncIXR02Yl8KAT/S/kUPHu5frIUZWvLz jD3vZfm7O01vYlGQhy1fWdCppXjAJou0DdkZV6KI2BXTxWrcBXMBJRTyPU86xGB9Espy pEbtdjWDe22WUYU3s0g0L33RZXRK1mcuynxxvaOm4DhO/4FVmWPkBBXEUWxm2HfVi9Qr cef7wk4mu9bao/RaDnOKI4kVO4AriGDHvXuG6/v72xV6YjvBsk8teGxPPRNcDNdLbqcO 4vfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777868178; x=1778472978; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=SYfjPmyaa96JhBP6n8juMz64+jwJBLNBNiC5bWaT8wk=; b=d8QzBTwcV9mevsiH/BCKUrmYkpIcB1+RceypYYyZ78T8r37ffFohz08ALrPNPJR0Oa KZ4GL/jyL2KKVox851rajyQIOMd1mCtZX080MYU8Clth3jboIsE5cEexiDKJHO8BCSGj JF9guGHISP2zeQjjJKsMyRlvnPBe88EUf9QZZXOYwZBARz+yM4ykD4abHR6/UL45cKgG aiX5+qHNYQFCm5c9vCjV9T/owumfHo/lfx2jvTwZKt4r6Ni/CFkRCrFef8N83/G+cdjW gkj91lslztouxchm2FVWyM22fRm95US5gULyWBx220JWCNTxMpP8ALTSiIMevsTE1+cA +u2Q== X-Forwarded-Encrypted: i=1; AFNElJ8j8jp9pdTaXVAwnkscOMo1pxCOKwIbbKpP2aXR18yvfPQ+Abt5UFjcLAU4uttXEFXiwetgbGAbDU6cllzS@lists.postgresql.org X-Gm-Message-State: AOJu0Yxk4HHIlLfROD+jXEQ28uXZmsMwwG4kD2U3SRCiqxGiFYfI/Mrn 0bINfo5B8JUtRFAgWk9+2Fwc+8gZpuB6ynb5z4XsYiGgoH9amENGN4TQE8x4ig== X-Gm-Gg: AeBDievrsDRozciCcnqC8cLFYoLT5n3wNqmAxdOcyW5T2ZNYD5MZmi0GlYv/c6pL+e/ nIkiVt2C992kA2Mt/5+GtnPYkobhpcLOXb8FGjz5eVBVgSYvyvEGCpHI4gm38k2bH8ExLS+Cbfh xRC2HRve0qo3RQvh9dDuLBd+Wk6Z9a5XhgeuNhjwtZLaqOrFGpMJr8xt8p5nhxDy9wV7dGL4I9e b/BXbLLhf6YTaPvU4XhUpO/EHZoBkp072gmESwtQjN/Oh0n3HmWLT8jVV+XetRUJNrgXjj8h327 6HE+Y4eumqB/zotkj/geX+0lAebqy1O5n28Q/wxKIunx/dQJCiHWEcbDJJGdbKKPqmGedAcGYma 6ymxIsFI9vcGxSBV7XBzHTDul6Knj/YXfU8gAgvbFj6GwLB2B6OtfWH4X75pSTLRDofq2ckg6hM hhyXLCLncs9PgD8pIBJ/VbfK3d0Jg4T4uneigkX2NfWu4IIO5dx3vy8XWLeoTQraMrCic= X-Received: by 2002:a05:7301:9f06:b0:2d8:df01:d9f6 with SMTP id 5a478bee46e88-2efba17c714mr3191134eec.23.1777868177610; Sun, 03 May 2026 21:16:17 -0700 (PDT) Received: from smtpclient.apple ([2601:681:4c01:7310:417c:bfdc:9b47:cf0e]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2ee3537d300sm17573466eec.0.2026.05.03.21.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2026 21:16:17 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: Choosing default collation/ctype Date: Sun, 3 May 2026 22:16:06 -0600 Message-Id: <0249361D-3CAC-41DF-9024-E154E8B02909@gmail.com> References: Cc: Ron Johnson , "pgsql-generallists.postgresql.org" In-Reply-To: To: Igor Korot X-Mailer: iPhone Mail (23D8133) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 3, 2026, at 3:51=E2=80=AFPM, Igor Korot wrote:= >=20 > =EF=BB=BF >>=20 >>=20 >> Then choose UTF8. >=20 > Let me give you a quick run of what I'm trying to do: >=20 > In my code I have 3 combo boxes: encoding, collation and ctype. >=20 > Initially they all have a value of "Default". >=20 > Lets say a user selected "KOI8-R" as an emcoding. >=20 > What I will do is populate collation and ctype combo boxes with > values available for such encodings. > But I want to go a little further and change the values in those > to be the default collation/ctype for the "KOI8-R" encoding. >=20 > Now are you saying I should choose the one that have "UTF8" > in it? >=20 > Thank you. >=20 >>=20 What is your user trying to do? Create a database? And you are asking for se= rver side settings to use when you invoke a create database command on the u= ser=E2=80=99s behalf? And they will understand all the possibilities and the= ir consequences? Or are you asking the user which settings to use for this clientside user? I= f I were this user I would be pissed off you didn=E2=80=99t make some reason= able guess for a starting point from the current environment.=20