public inbox for [email protected]  
help / color / mirror / Atom feed
Re: Setting "ucs_basic" as the default database collation
2+ messages / 2 participants
[nested] [flat]

* Re: Setting "ucs_basic" as the default database collation
@ 2024-10-27 11:56 Ron Johnson <[email protected]>
  2024-10-27 14:55 ` Re: Setting "ucs_basic" as the default database collation Christophe Pettus <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Ron Johnson @ 2024-10-27 11:56 UTC (permalink / raw)
  To: pgsql-general

On Sun, Oct 27, 2024 at 5:32 AM Christophe Pettus <[email protected]> wrote:

> Is there a way to specify "ucs_basic" (or the other "standard collations"
> [1]) collation as the default database collation at database creation time,
> rather than on a per-column or per-operation basis?
>
> [1]
> https://www.postgresql.org/docs/current/collation.html#COLLATION-MANAGING-STANDARD
>
>
https://www.postgresql.org/docs/16/sql-createdatabase.html

The CREATE DATABASE statement has an ENCODING option.  Does that work with
'ucs_basic'?

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> crustacean!


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Setting "ucs_basic" as the default database collation
  2024-10-27 11:56 Re: Setting "ucs_basic" as the default database collation Ron Johnson <[email protected]>
@ 2024-10-27 14:55 ` Christophe Pettus <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Christophe Pettus @ 2024-10-27 14:55 UTC (permalink / raw)
  To: Ron Johnson <[email protected]>; +Cc: pgsql-general



> On Oct 27, 2024, at 13:56, Ron Johnson <[email protected]> wrote:
> 
>  The CREATE DATABASE statement has an ENCODING option.  Does that work with 'ucs_basic'?

No:

xof=# create database test encoding=ucs_basic;
ERROR:  ucs_basic is not a valid encoding name
LINE 1: create database test encoding=ucs_basic;
                             ^

Although that's not too surprising; it's a UTF-8 collation, not an encoding as such.  Experimenting with the various other CREATE DATABASE parameters hasn't gotten me any farther.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-10-27 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-10-27 11:56 Re: Setting "ucs_basic" as the default database collation Ron Johnson <[email protected]>
2024-10-27 14:55 ` Christophe Pettus <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox