Re: dump/restore results in duplicate key violation with 7.4.6.
В списке pgsql-admin по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: dump/restore results in duplicate key violation with 7.4.6. |
| Дата | |
| Msg-id | 4026.1100391148@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: dump/restore results in duplicate key violation with 7.4.6. (Dan Libby <dan@libby.com>) |
| Список | pgsql-admin |
Dan Libby <dan@libby.com> writes:
> 1) I don't understand why a difference in locale should cause a
> duplicate key error, especially when both databases were created using
> 'UNICODE' encoding. Is this valid behavior or a postgres bug?
The past reports I've seen of such misbehavior appeared to result
from strcoll() failing to cope well with multibyte sequences that
were illegal according to the selected locale's idea of the character
set in use. You can get burnt by this quite easily if you set the
database encoding to something not compatible with the locale.
If you didn't make that mistake, then I'd bet on Postgres having a
more liberal idea of what are valid characters in the encoding than
the locale definition does. Whether that is Postgres' bug or the
locale definition's is impossible to say without more data.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера