| От | Tom Lane |
|---|---|
| Тема | Re: Update - pg_dumpall money problem |
| Дата | |
| Msg-id | 20585.1128954637@sss.pgh.pa.us обсуждение |
| Ответ на | Update - pg_dumpall money problem (Gary Stainburn <gary.stainburn@ringways.co.uk>) |
| Список | pgsql-admin |
Gary Stainburn <gary.stainburn@ringways.co.uk> writes:
> I've done a pg_dumpall and then imported that to the new system but a
> copy is failing with the following:
> psql:/backups/eddie_pg_dumpall.sql:3076: ERROR: invalid input syntax
> for type money: "�3.18"
> CONTEXT: COPY invoices, line 1, column net: "�3.18"
> I asume that this is because 7.2 includes the currency sign, and 7.4
> doesn't like it.
No, money still expects a currency sign. It looks to me like the
problem is that the new database doesn't have the same monetary locale
as the old one, and so it doesn't think � is the right currency
sign. You can fix this by changing the LC_MONETARY parameter.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера