X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id ECCF8D1D554 for ; Thu, 11 Mar 2004 23:22:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 00831-08 for ; Thu, 11 Mar 2004 19:22:35 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 60CE5D1D44F for ; Thu, 11 Mar 2004 19:22:28 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i2BNMR1Y048216 for ; Thu, 11 Mar 2004 23:22:27 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i2BNAPO8046126 for pgsql-sql@postgresql.org; Thu, 11 Mar 2004 23:10:25 GMT From: Chris Browne X-Newsgroups: comp.databases.postgresql.sql Subject: Re: IMPORT TOOL Date: Thu, 11 Mar 2004 17:14:22 -0500 Organization: cbbrowne Computing Inc Lines: 45 Message-ID: <60vflb58w1.fsf@dev6.int.libertyrms.info> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.110002 (No Gnus v0.2) XEmacs/21.4 (Reasonable Discussion, linux) Cancel-Lock: sha1:My3owcNwRCOrbK3BNSMU0RWJbS8= To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/142 X-Sequence-Number: 17241 lkwan@nuvo.com (Louie Kwan) writes: > Do anyone of you aware of any PG import tool same as SQL*LOADER in ORACLE > > We are doing some DataWarehouse work and need to import a large set of data > from csv files. > > We are trying a import tool from ems-hitech.com, but I have troubles when > loading time and date columns. > > Any help is much appreciated. > > Thanks > Louie > > ------ | Creating NNM_HOST Table > ------ | > > CREATE TABLE NNM_NODES ( > lastLoadTime_e DATE, > domain_name VARCHAR(10), > ---- > ovtopo_id INTEGER NOT NULL, > node_type VARCHAR(10), > node_name VARCHAR(30), > ov_status VARCHAR(10), > ipaddress VARCHAR(15) > ); > data.csv > -------- > 31/01/2004,D1H01,845,IP,dfrQCQCRD1,Normal,142.130.35.1 > 31/01/2004,D1H01,849,IP,dfrQCIMCP1,Normal,142.130.130.33 > 31/01/2004,D1H01,853,IP,dfrQCSIBL1,Normal,142.130.130.19 At this point, the 'equivalent' to SQL*LOADER is some combination of Perl, Python, Tcl, or some other favorite scripting language. I seem to recall that someone (he'll remain nameless :-)) was working on a tool rather like this; I'm not sure where deployment of that stands. -- output = ("cbbrowne" "@" "ntlug.org") http://www3.sympatico.ca/cbbrowne/advocacy.html "SCSI is *NOT* magic. There are *fundamental technical reasons* why it is necessary to sacrifice a young goat to your SCSI chain now and then."