X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D5B48D1B508 for ; Thu, 25 Sep 2003 16:39:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 22430-10 for ; Thu, 25 Sep 2003 13:38:32 -0300 (ADT) Received: from web1.nexusinternetsolutions.net (web1.nexusinternetsolutions.net [206.47.131.12]) by svr1.postgresql.org (Postfix) with SMTP id 465F4D1B553 for ; Thu, 25 Sep 2003 13:38:31 -0300 (ADT) Received: (qmail 10945 invoked from network); 25 Sep 2003 16:38:08 -0000 Received: from unknown (HELO ws1) (65.49.236.97) by web1.nexusinternetsolutions.net with SMTP; 25 Sep 2003 16:38:08 -0000 From: "Dave [Hawk-Systems]" To: Subject: populate table with large csv file Date: Thu, 25 Sep 2003 12:38:07 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.8 tagged_above=0.0 required=5.0 tests=BAYES_30, FORGED_MUA_OIMO, MSGID_GOOD_EXCHANGE X-Spam-Level: * X-Archive-Number: 200309/1625 X-Sequence-Number: 49844 have the table "numbercheck" Attribute | Type | Modifier -----------+------------+---------- svcnumber | integer | not null svcqual | varchar(9) | svcequip | char(1) | svctroub | varchar(6) | svcrate | varchar(4) | svcclass | char(1) | trailer | varchar(3) | Index: numbercheck_pkey also have a csv file 7057211380,Y,,,3,B 7057216800,Y,,,3,B 7057265038,Y,,,3,B 7057370261,Y,,,3,B 7057374613,Y,,,3,B 7057371832,Y,,,3,B 4166336554,Y,,,3,B 4166336863,Y,,,3,B 7057201148,Y,,,3,B aside from parsing the csv file through a PHP interface, what isthe easiest way to get that csv data importted into the postgres database. thoughts? thanks Dave