Re: Import German Number Format

From: "Leif B(dot) Kristensen" <leif(at)solumslekt(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Import German Number Format
Date: 2008-10-03 09:43:58
Message-ID: 200810031143.58905.leif@solumslekt.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 2. October 2008, Tim Semmelhaack wrote:
>Hello,
>
>I have to import a huge number of data sets of data sets with "Copy
> from".
>
>The numbers are formatted with decimal comma ',' (as usual in Germany)
>instead of the decimal point '.'
>
>When I try to import this data Postgres crashes, so I think I have to
>change a parameter with SET? Does anybody know which parameter I have
>to change?

s/(\d{2}),(\d{2}),(\d{4})/$1.$2.$3/g
--
Leif Biberg Kristensen | Registered Linux User #338009
Me And My Database: http://solumslekt.org/blog/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-10-03 12:10:19 Re: Getting rows in statement-level triggers
Previous Message Gurjeet Singh 2008-10-03 06:57:56 Re: Getting rows in statement-level triggers