Re: Change server encoding after the fact

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Change server encoding after the fact
Дата
Msg-id 10863.1317408321@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Change server encoding after the fact  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
Scott Marlowe <scott.marlowe@gmail.com> writes:
> On Fri, Sep 30, 2011 at 12:26 PM, Cody Caughlan <toolbag@gmail.com> wrote:
>> So it appears both template0 & template1 are SQL_ASCII, so how would
>> creating from a new DB from template0 be any different than template1?

> P.s. I'm not sure why it works, I just know that it does. :)

CREATE DATABASE assumes that template0 cannot contain any non-ASCII
data, so it's okay to clone it and then pretend that the result has some
other encoding.  The same assumption cannot be made for template1, since
that's user-modifiable.

            regards, tom lane

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Change server encoding after the fact
Следующее
От: Cody Caughlan
Дата:
Сообщение: Re: Change server encoding after the fact