Re: Change collate postgresql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: marcelo mendoza <jmarcelo(dot)mendoza(at)gmail(dot)com>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Change collate postgresql
Date: 2020-08-19 13:56:06
Message-ID: 1401863.1597845366@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

marcelo mendoza <jmarcelo(dot)mendoza(at)gmail(dot)com> writes:
> Hi Laurenz, this is the space en_US.UTF- 8 (the space is before the 8)
> Collate | en_US.UTF-
> | 8
> The database was created in this way, without error, how can I fix this?

I'm guessing that you specified LC_COLLATE that way when you created
the database. Postgres won't complain if setlocale() doesn't, which
it very possibly wouldn't.

I don't believe we offer any DDL command to change that, so a direct
UPDATE on pg_database is the only way. Should be pretty harmless
as long as you don't try to change the setting to a functionally
different value.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message marcelo mendoza 2020-08-20 15:54:15 Re: Change collate postgresql
Previous Message marcelo mendoza 2020-08-19 13:06:52 Re: Change collate postgresql