From: Ertan Küçükoğlu <ertan.kucukoglu@1nar.com.tr>
To: 'Samed YILDIRIM' <samed@reddoc.net>
To: pgsql-admin@postgresql.org
Subject: Re: Creating a database with LC_COLLATE tr_TR.UTF-8
Date: Fri, 30 Dec 2016 18:13:47 +0300
Message-ID: <01bb01d262af$51b4adc0$f51e0940$@1nar.com.tr> (raw)
In-Reply-To: <3388211483110030@web20o.yandex.ru>
References: <01b901d262a8$8352b8b0$89f82a10$@1nar.com.tr>
<3388211483110030@web20o.yandex.ru>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hello Samed,
After testing, I see that your sugestion also works.
Thank you.
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Samed YILDIRIM
Sent: Friday, December 30, 2016 6:01 PM
To: Ertan Küçükoğlu <ertan.kucukoglu@1nar.com.tr>; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Creating a database with LC_COLLATE tr_TR.UTF-8
Hi Ertan,
Locale names are different on Windows and Linux. Please try using following command to create new database.
CREATE DATABASE collationtest ENCODING 'UTF8' LC_COLLATE 'Turkish_Turkey.1254' LC_CTYPE = 'Turkish_Turkey.1254' TEMPLATE template0;
Note on document:
On Windows, however, UTF-8 encoding can be used with any locale.
Ref: https://www.postgresql.org/docs/9.6/static/multibyte.html
Best regards.
Samed YILDIRIM
30.12.2016, 16:26, "Ertan Küçükoğlu" <mailto:ertan.kucukoglu@1nar.com.tr>:
Hello,
I am quite new to the community and PostgreSQL. My search in the acrhieves
did not show any hints.
I just installed PostgreSQL 9.6.1 64bit on Windows 10 64bit OS. Used
EnterpriseDB setup.
I wanted to create a database using LC_COLLATE "tr_TR.UTF-8". My pgsql
command and error I receive is as follows:
postgres=# CREATE DATABASE collationtest ENCODING 'UTF-8' LC_COLLATE
'tr_TR.UTF-8' TEMPLATE template0;
ERROR: invalid locale name: "tr_TR.UTF-8"
postgres=#
Just for a test, I tried 'tr_TR.UTF8', 'tr_TR' and got same result for all.
I am open to any advises and appreciate any help.
Thanks & regards,
Ertan Küçükoğlu
--
Sent via pgsql-admin mailing list (mailto:pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ertan.kucukoglu@1nar.com.tr, samed@reddoc.net
Subject: Re: Creating a database with LC_COLLATE tr_TR.UTF-8
In-Reply-To: <01bb01d262af$51b4adc0$f51e0940$@1nar.com.tr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox