X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0BEB13A4D96 for ; Sat, 27 Nov 2004 17:55:44 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 74260-04 for ; Sat, 27 Nov 2004 17:55:42 +0000 (GMT) Received: from mail.99main.com (mail.99main.com [208.28.184.11]) by svr1.postgresql.org (Postfix) with ESMTP id 2E2213A4E05 for ; Sat, 27 Nov 2004 17:55:41 +0000 (GMT) Received: from 99main.com (localhost [127.0.0.1]) by mail.99main.com (8.12.8+Sun/8.12.8) with ESMTP id iARHteLC012802 for ; Sat, 27 Nov 2004 12:55:40 -0500 (EST) From: "Keith Worthington" To: "PostgreSQL SQL" Reply-To: KeithW@narrowpathinc.com Subject: update/insert data Date: Sat, 27 Nov 2004 12:55:40 -0500 Message-Id: <20041127175540.M63399@narrowpathinc.com> X-Mailer: Open WebMail 1.70 20020717 X-OriginatingIP: 68.235.22.242 (npkeithw) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/278 X-Sequence-Number: 19596 Hi All, I have two tables in different schemas. The first table in the data_transfer schema is loaded with a COPY command. I need to transfer the data to the second schema inserting new records and updating existing records. What is the best way to achieve this functionality? Kind Regards, Keith ______________________________________________ 99main Internet Services http://www.99main.com