pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedUpdate - pg_dumpall money problem
4+ messages / 3 participants
[nested] [flat]
* Update - pg_dumpall money problem
@ 2005-10-10 11:25 Gary Stainburn <gary.stainburn@ringways.co.uk>
2005-10-10 11:42 ` Re: Update - pg_dumpall money problem Hannes Dorbath <light@theendofthetunnel.de>
2005-10-10 11:52 ` Re: Update - pg_dumpall money problem Hannes Dorbath <light@theendofthetunnel.de>
2005-10-10 14:30 ` Re: Update - pg_dumpall money problem Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 3 replies; 4+ messages in thread
From: Gary Stainburn @ 2005-10-10 11:25 UTC (permalink / raw)
To: pgsql-admin
Hi folks.
I'm trying to move an existing setup on a 7.2 system to another existing
box running 7.4.
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.
How do I sptop 7.2 including it, or make 7.4 allow it?
Cheers
Gary
--
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Update - pg_dumpall money problem
2005-10-10 11:25 Update - pg_dumpall money problem Gary Stainburn <gary.stainburn@ringways.co.uk>
@ 2005-10-10 11:42 ` Hannes Dorbath <light@theendofthetunnel.de>
2 siblings, 0 replies; 4+ messages in thread
From: Hannes Dorbath @ 2005-10-10 11:42 UTC (permalink / raw)
To: pgsql-admin
It /MAY/ help to use a newer pg_dump / pg_restore binary with -i option.
Try to dump and restore using 8.1 binaries for example.
On 10.10.2005 13:25, Gary Stainburn wrote:
> I'm trying to move an existing setup on a 7.2 system to another existing
> box running 7.4.
>
> 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.
>
> How do I sptop 7.2 including it, or make 7.4 allow it?
--
Regards,
Hannes Dorbath
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Update - pg_dumpall money problem
2005-10-10 11:25 Update - pg_dumpall money problem Gary Stainburn <gary.stainburn@ringways.co.uk>
@ 2005-10-10 11:52 ` Hannes Dorbath <light@theendofthetunnel.de>
2 siblings, 0 replies; 4+ messages in thread
From: Hannes Dorbath @ 2005-10-10 11:52 UTC (permalink / raw)
To: pgsql-admin
..and I guess using custom format (-F c -Z 9) might be saver, because a
newer pg_restore binary then might have a chance to correct things,
depending on the server version it is used against.
On 10.10.2005 13:25, Gary Stainburn wrote:
> I'm trying to move an existing setup on a 7.2 system to another existing
> box running 7.4.
>
> 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.
>
> How do I sptop 7.2 including it, or make 7.4 allow it?
--
Regards,
Hannes Dorbath
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Update - pg_dumpall money problem
2005-10-10 11:25 Update - pg_dumpall money problem Gary Stainburn <gary.stainburn@ringways.co.uk>
@ 2005-10-10 14:30 ` Tom Lane <tgl@sss.pgh.pa.us>
2 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2005-10-10 14:30 UTC (permalink / raw)
To: Gary Stainburn <gary.stainburn@ringways.co.uk>; +Cc: 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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-10-10 14:30 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-10-10 11:25 Update - pg_dumpall money problem Gary Stainburn <gary.stainburn@ringways.co.uk>
2005-10-10 11:42 ` Hannes Dorbath <light@theendofthetunnel.de>
2005-10-10 11:52 ` Hannes Dorbath <light@theendofthetunnel.de>
2005-10-10 14:30 ` Tom Lane <tgl@sss.pgh.pa.us>
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