Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id A79951DACBC2 for ; Wed, 4 Jan 2012 13:34:50 -0400 (AST) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RiUjg-0006y8-T4 for pgsql-sql@postgresql.org; Wed, 04 Jan 2012 17:34:49 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RiUjT-00016F-3I for pgsql-sql@postgresql.org; Wed, 04 Jan 2012 09:34:35 -0800 Date: Wed, 4 Jan 2012 09:34:35 -0800 (PST) From: rverghese To: pgsql-sql@postgresql.org Message-ID: <1325698475096-5120317.post@n5.nabble.com> In-Reply-To: <4F044733.6020007@siix.com> References: <1325624070446-5117916.post@n5.nabble.com> <20120104090838.GA6039@tux> <4F042291.6040903@siix.com> <4F044733.6020007@siix.com> Subject: Re: ignore unique violation OR check row exists MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.1 (/) X-Archive-Number: 201201/19 X-Sequence-Number: 36190 Thanks for the recommendations. Unfortunately I have to clean out the data before I insert, so I cannot do a bulk copy from a CSV, I will try the option of inserting into src table and then copying relevant data to dest table and see if that works faster for me. I suppose I could bulk insert and then clean out the data before I insert into destination table. I'll have to see how long that takes. -- View this message in context: http://postgresql.1045698.n5.nabble.com/ignore-unique-violation-OR-check-row-exists-tp5117916p5120317.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.