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 1wJcrj-0004xt-1V for pgsql-general@arkaria.postgresql.org; Sun, 03 May 2026 19:52:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wJcri-004S2Y-11 for pgsql-general@arkaria.postgresql.org; Sun, 03 May 2026 19:52:34 +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 1wJcri-004S2P-01 for pgsql-general@lists.postgresql.org; Sun, 03 May 2026 19:52:34 +0000 Received: from mail-yw1-x1136.google.com ([2607:f8b0:4864:20::1136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wJcrf-00000000KGZ-4Bm3 for pgsql-general@lists.postgresql.org; Sun, 03 May 2026 19:52:33 +0000 Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-79ee5037d44so47635947b3.0 for ; Sun, 03 May 2026 12:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777837950; cv=none; d=google.com; s=arc-20240605; b=Q/i+Wonfz8SJ16Wk+x8Lp+lG8xBFHRuGcwloCj+jHwF3r/q4ZB1hsfkb8Oy3btcv5Y MThRG503isRzkBIK2lQVG6t4AZAhImwawph8aXA1ge/AwPpdtfhe8PLPmU8P8TVhLJEd anu0smpoOtjZjZpJMrZB5KOaAtnL4NSwqWUGqV5/C9uT3/ZrQeER1e/Jkhp5GU6rOczu GPUsF9Sjj729LFnJd20h7QNoK04dpuPOlvkE4q4B+Hh4pih7aUE6k4r09I+Ux2QZkNyA jnfcgRP5g7DeAa9YQCanwXrdVeEyxQZfmA2AOJR7dt3pfHwpUEAwRPy48J0uASMAQh0n C/Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=eH+WV2YApB3piP1gZoKsQoCjOMHTDq+SKeZAro+cHy0=; fh=2DoGC78b0mi8uZ4UY+9ocPF86GSVzeaJWqou/x907js=; b=T1eb86r9Ik4VRru+3rhZcKGpNgloPf8nNyt/Ez8LoAW3RuLyt9KUm2xvghS68EcwEZ za+LhCo+qK7JBuvpzkvWUgcSeJ7TC36laLqifQsTlh/Y3xhvM40vHHufaAF+DCrkOQE+ qZaTXRK21gJY/yJ9LgWqb8G8YJVAvQIVeD+rPen5Rxxxh7Q2/1X2D2w1OQ2Y1UaxTido 1toht9Drzpi50aWXGTMs4hEHH9wYykVODL4rKbpZDgmruEh6R31keGtG7XjYi6tlo000 /q3reDWRMjXKRfCRUEBi9+1RxOKWgjdwey4k7IJU279e4q2vszsRndrqdMh24OX8tR54 Cwkg==; 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=20251104; t=1777837950; x=1778442750; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=eH+WV2YApB3piP1gZoKsQoCjOMHTDq+SKeZAro+cHy0=; b=MfPhODO2QkQBy3FpSHqTTKrteAMA6j275Z5Y9MJKZcMDgnQobveeOM0qXuA8r4vLKO lOFNkEpV5AJZ4vYGTSc8hm9p9bqjwQtJaO60rjMvEAjUGLG+YRzd5Y5qChz9fSXplj+C HqGHKssb0njAdn/BqVLcWxya1opi2VgF1+BBouxXNpy4TmpxzyzdZ5RwrHoTqUVRkg5t L8i4dHy/3Vv8izJ5D35IBcep3lHh23pxrhznD32bDPXNCbSDhKSXWWvUJMmQE+5v+v1U i6xq3Bc9b2bFR82TeKjJ3nRiK9Uxv1X26xmxCUsSZeatamsQ8njQD1DmCn1xW5WQBqg1 KYZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777837950; x=1778442750; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eH+WV2YApB3piP1gZoKsQoCjOMHTDq+SKeZAro+cHy0=; b=pzU6+6CnbZwmUHnxkkwkhTHOD+21B7JH8/kzDDh1ZBJvFpDZ/vDu5+yS6ySRZ48OJV DEDTz129w+W8FhiacAlXlTExOZ0EjkJe4CMB/LHFt4BPsx3SA5oJd5nQzuWs5o6gIVpy EkDX5zKCPdwU+mH8295jiPBBrpTnD1lyuT+VSlN8VgmPNAsUKMJQJ/Eh5d8uztAXSxwG yE00BGZ5vmEHhxL9MLElJ10/OtgaFMOl/T+JB0/CY55fDIlCOynWyRe8AvslzpIHa27T v+Gh0zaKOVqaMlduH2nVY4R8prZ5RQ1/pUZaNzS9V75CIkb5To2xoLTJwZ34N7vmpiAy PS4g== X-Gm-Message-State: AOJu0Ywa8XCI2kA1avWnySTb/AtD6GZ95vxM0EMydpYESVtqjnxrhLbW n+8EJjJ6mJ9+3/NhI5X0uxbc/RT6Gtrxgisd+TtOnrIQWWthu6srguPWMBogI+7lFqAPArLeHID gH/Ttp8WlrsJwjF0ojTEsTdVxrYiHObOHYIt84vc= X-Gm-Gg: AeBDieue5XrO+EOXcFMcYA78x6P3uqv9CpgSIWd+x/KXh+pHZkx56bOwByWvA3SrTcP zXjBfpcXSG0z+xkwiSWQgUyPnAQw3i/M7z3YCOOl2KHLOCXcxfXcZoPFU0PR5xZ16tU7Tp+2Emd RrML2LrUpleaYYsblvHBfN4H8JCSjADpYPGykjf4HVVlctTlGO4EUi0cnTHh//18u68siHYOoB8 hPNeXkTvV7Za7GqcittRMr+tTfc9prvaNpGlEKyXZ+qdteKyTDle/rU5tMKsUgk2eYvEBxuxHDH b4TGUEisT8ODXFuEPXj+WGqM6HDjmxHAlL7XQ/tP6aJLI6xtPRDXAj3ZuGtoUL2m X-Received: by 2002:a05:690c:3612:b0:7b0:3180:e827 with SMTP id 00721157ae682-7bd5666ff4fmr107796957b3.22.1777837949765; Sun, 03 May 2026 12:52:29 -0700 (PDT) MIME-Version: 1.0 From: Igor Korot Date: Sun, 3 May 2026 14:52:18 -0500 X-Gm-Features: AVHnY4Jv93CLVpXTcPK5c-Bffmk7yzfm9jWIQQyC21QN8JxoddrKI9Q232us_ns Message-ID: Subject: Choosing default collation/ctype To: "pgsql-generallists.postgresql.org" Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, ALL, In the CREATE DATABASE statement I can use encoding/collation/ctype. I can retrieve the encoding list with: [code] SELECT pg_encoding_to_char( conforencoding ) AS name FROM pg_conversion [/code] And then I can get a list of collations/ctypes with: [code] SELECT collname, collencoding, collprovider collctype FROM pg_collation [/code] And then add a logic in my UI to switch collations/ctypes based on encoding. However, what I wonder is: Is there a way to select a default collation/ctype for a specific encoding? Or maybe I'm overthinking it and I should let the user choose and if nothing - just keep those 2 as "Default" and let the server pick it up. However it will be weird, especially from me as a user POV. Please advise. Thank you.