Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6DAA91337B69 for ; Tue, 21 Dec 2010 08:04:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 23043-01 for ; Tue, 21 Dec 2010 12:04:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id A08FE1337B4F for ; Tue, 21 Dec 2010 08:04:49 -0400 (AST) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id oBLC4mwh067933 for ; Tue, 21 Dec 2010 14:04:48 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id oBLC4mlL067932 for pgsql-sql@postgresql.org; Tue, 21 Dec 2010 14:04:48 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-sql@postgresql.org Subject: Re: data import Date: Tue, 21 Dec 2010 15:04:48 +0300 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201012211404.48311.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.451 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449 X-Spam-Level: X-Archive-Number: 201012/97 X-Sequence-Number: 34933 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 21 December 2010 13:36:58 =CE=BF/=CE=B7 Pa= vel Stehule =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hello >=20 > 2010/12/21 Viktor Bojovi=C4=87 : > > Hi, > > > > can anyone recommend me a windows and linux free tools for importing da= ta > > into postgre. > > Source files are CSV or excel. >=20 Openoffice can do this job, populating a table from an excel data source, but every time i do it (which is not often) it is like reinventing the whee= l again. The way to do it, IIRC, is to "create" a database based on your existing ex= cel data source. After that you can copy data from this "excel-powered" database to your nor= mal pgsql database, fairly easily. It is easy actually, just not so straight forward as most people would want. > PostgreSQL can read a CVS files via a COPY statement. You can use a > \copy metacommand too from psql >=20 > Regards >=20 > Pavel Stehule >=20 > > Thanx in advance > > -- > > --------------------------------------- > > Viktor Bojovi=C4=87 > > --------------------------------------- > > Wherever I go, Murphy goes with me > > >=20 =2D-=20 Achilleas Mantzios