Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A08089FBECA for ; Wed, 11 Jul 2007 10:46:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 92001-02 for ; Wed, 11 Jul 2007 10:46:33 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by postgresql.org (Postfix) with ESMTP id C29469FBE9C for ; Wed, 11 Jul 2007 10:46:42 -0300 (ADT) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1I8cWd0WR0-00013i; Wed, 11 Jul 2007 15:46:39 +0200 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1I8cWc-0005kw-00 for pgsql-general@postgresql.org; Wed, 11 Jul 2007 15:46:38 +0200 Date: Wed, 11 Jul 2007 15:46:38 +0200 From: "A. Kretschmer" To: pgsql-general@postgresql.org Subject: Re: odbc parameters Message-ID: <20070711134638.GC20014@a-kretschmer.de> References: <469320CA.9080406@shaw.ca> <5288.1184094554@sss.pgh.pa.us> <001301c7c3b5$1ccb4950$9bb80fd4@zlatkovyfkpgz6> <20070711123154.GE7320@a-kretschmer.de> <003f01c7c3ba$c438f930$9bb80fd4@zlatkovyfkpgz6> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003f01c7c3ba$c438f930$9bb80fd4@zlatkovyfkpgz6> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! User-Agent: Mutt/1.5.9i X-Provags-ID: V01U2FsdGVkX1/I1zkLNCO3njEu44z9TGiaV9m/9tILJ/seo1+ ipVlYLdg9Gx4bkXla69ZaJktzNd+3+kV7kaMAsDkaTOeV7A96F MjSVKAERcoy6XZuOBo3sL8+HuXU3LZl X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/475 X-Sequence-Number: 117076 am Wed, dem 11.07.2007, um 14:55:28 +0200 mailte Zlatko Matic folgendes: > I have already tried COPY. > But, it has problems with type castings. > For example, COPY operation fails because PostgreSQL can't copy value > 7.844,000 into NUMERIC field... Either copy such values into a temp. table with text-columns and work with arbitrary sql-funktions (you can convert it to numeric with, for instance, regexp_replace('7.844,000',',.*$', '')::numeric) to fill the destination table with the values or work before the COPY with text-lools like sed, awk, perl, ... Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net