X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 69435329E86 for ; Tue, 14 Sep 2004 21:21:30 +0100 (BST) 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 20488-03 for ; Tue, 14 Sep 2004 20:21:20 +0000 (GMT) Received: from cmailm4.svr.pol.co.uk (cmailm4.svr.pol.co.uk [195.92.193.211]) by svr1.postgresql.org (Postfix) with ESMTP id E3B6C329DB0 for ; Tue, 14 Sep 2004 21:21:20 +0100 (BST) Received: from modem-802.lemur.dialup.pol.co.uk ([217.135.131.34] helo=happyplace) by cmailm4.svr.pol.co.uk with smtp (Exim 4.14) id 1C7Jni-0004LC-HB; Tue, 14 Sep 2004 21:21:18 +0100 From: "Simon Riggs" To: "Stephen Frost" , "Markus Schaber" Cc: "PostgreSQL Performance List" Subject: Re: Data Warehouse Reevaluation - MySQL vs Postgres -- Date: Tue, 14 Sep 2004 21:38:49 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20040914143303.GR21419@ns.snowman.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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: 200409/127 X-Sequence-Number: 8255 > Stephen Frost > * Markus Schaber (schabios@logi-track.com) wrote: > > Generally, what is the fastest way for doing bulk processing of > > update-if-primary-key-matches-and-insert-otherwise operations? > > This is a very good question, and I havn't seen much of an answer to it > yet. I'm curious about the answer myself, actually. In the more recent > SQL specs, from what I understand, this is essentially what the 'MERGE' > command is for. This was recently added and unfortunately is not yet > supported in Postgres. Hopefully it will be added soon. > Yes, I think it is an important feature for both Data Warehousing (used in set-operation mode for bulk processing) and OLTP (saves a round-trip to the database, so faster on single rows also). It's in my top 10 for 2005. Best Regards, Simon Riggs