X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4BE8FD9919 for ; Mon, 10 Oct 2005 11:30:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55503-08 for ; Mon, 10 Oct 2005 14:30:30 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B8ACFD9EB3 for ; Mon, 10 Oct 2005 11:30:32 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j9AEUbs5020586; Mon, 10 Oct 2005 10:30:37 -0400 (EDT) To: Gary Stainburn Cc: pgsql-admin@postgresql.org Subject: Re: Update - pg_dumpall money problem In-reply-to: <200510101225.27874.gary.stainburn@ringways.co.uk> References: <200510101225.27874.gary.stainburn@ringways.co.uk> Comments: In-reply-to Gary Stainburn message dated "Mon, 10 Oct 2005 12:25:27 +0100" Date: Mon, 10 Oct 2005 10:30:37 -0400 Message-ID: <20585.1128954637@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/115 X-Sequence-Number: 19187 Gary Stainburn 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