Re: [GENERAL] character encoding of the postgres database

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: [GENERAL] character encoding of the postgres database
Дата
Msg-id 18585ecf-26c4-c4d6-d65a-988be0f144af@aklaver.com
обсуждение исходный текст
Ответ на [GENERAL] character encoding of the postgres database  (Sandeep Gupta <gupta.sandeep@gmail.com>)
Ответы Re: [GENERAL] character encoding of the postgres database
Список pgsql-general
On 05/10/2017 08:48 AM, Sandeep Gupta wrote:
> Currently, the postgres database by has SQL_ASCII encoding.
>
> psql -p 5771 postgres -l
>                             List of databases
>    Name    |  Owner  | Encoding  | Collate | Ctype |  Access privileges
> -----------+---------+-----------+---------+-------+---------------------
>  postgres  | sandeep | SQL_ASCII | C       | C     |
>  template0 | sandeep | SQL_ASCII | C       | C     | =c/sandeep         +
>            |         |           |         |       | sandeep=CTc/sandeep
>  template1 | sandeep | SQL_ASCII | C       | C     | =c/sandeep         +
>            |         |           |         |       | sandeep=CTc/sandeep
> (3 rows)
>
> Is it possible to start the postgres database with UTF-8 encoding, instead
> of modifying it later.

See Peter's post, just remember that SQL_ASCII is essentially no
encoding so be prepared for issues. I would test before doing this on
live data.


>
> Thanks
> sandeep
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Upgrading postgresql minor version
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Upgrading postgresql minor version