X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 01910D1B96E for ; Thu, 28 Aug 2003 21:40:16 +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 06980-10 for ; Thu, 28 Aug 2003 18:40:07 -0300 (ADT) Received: from www.vuit.com (adsl-63-200-221-253.dsl.sndg02.pacbell.net [63.200.221.253]) by svr1.postgresql.org (Postfix) with ESMTP id 64660D1B550 for ; Thu, 28 Aug 2003 18:40:04 -0300 (ADT) Received: from MEHRAB (adsl-63-200-221-250.dsl.sndg02.pacbell.net [63.200.221.250]) by www-eth1.vuit.com (8.10.2/8.10.2) with ESMTP id h7SLe1j25635 for ; Thu, 28 Aug 2003 14:40:02 -0700 From: "Mehrab Erfani" To: Subject: Hi, I have a question regarding the postgresql scripting Date: Thu, 28 Aug 2003 14:40:37 -0800 Message-ID: <000a01c36db5$676227e0$0e01000a@MEHRAB> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C36D72.593EE7E0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 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.0 tagged_above=0.0 required=5.0 tests=HTML_60_70, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: * X-Archive-Number: 200308/346 X-Sequence-Number: 10066 This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C36D72.593EE7E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I tried to get answers back from the newsgroup and the mail list of postgres.org, but wasn't that luck yet. I did subscribe though under the name NICO, and with the mail add: nico_king2002@yahoo.com I'd appreciate it if you could answer my question. I have written a script to import some data into my database tables, with the delimiter ','. Now my question is sometime the data being sent to my tables might not match the data type or be corrupted and I receive an error message. One: how could I prevent that? Two: how can I divert all my error messages to a log file, where I can see the errors later? Three: how can I proceed with importing the rest of the data even though some are corrupted? Thanks Nico, P.S: I hope I am makeing sense. ------=_NextPart_000_000B_01C36D72.593EE7E0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,
I tried to get answer=
s back from the newsgroup and the mail list of postgres.org, but wasn’=
;t that luck yet.
I did subscr=
ibe though under the name NICO, and with the mail add: nico_king2002@yahoo.=
com
I’d ap=
preciate it if you could answer my question.
<=
tt> 
I have writt=
en a script to import some data into my
database tab=
les, with the delimiter ','. Now my question
<=
tt>is sometime =
the data being sent to my tables might not
match the da=
ta type or be corrupted and I receive an error message.<=
/pre>
One: how cou=
ld I prevent that?
Two: how can=
 I divert all my error messages to a log file, where I can see the errors l=
ater?
Three: how c=
an I proceed with importing the rest of the data even though some are corru=
pted?
Thanks
 
Nico,=
P.S: I hope =
I am makeing sense.

 

 

------=_NextPart_000_000B_01C36D72.593EE7E0--