X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8DE60D1B2F7 for ; Tue, 11 May 2004 04:00:34 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 19092-02 for ; Tue, 11 May 2004 04:00:15 -0300 (ADT) Received: from www.postgresql.com (www.postgresql.com [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id D3E59D1B2F2 for ; Tue, 11 May 2004 04:00:13 -0300 (ADT) Received: from localhost.localdomain (217-159-136-226-dsl.kt.estpak.ee [217.159.136.226]) by www.postgresql.com (Postfix) with ESMTP id 00B82CF671D for ; Tue, 11 May 2004 04:00:12 -0300 (ADT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.10/8.12.10) with ESMTP id i4B6xkmI007413; Tue, 11 May 2004 09:59:46 +0300 Received: (from hannu@localhost) by localhost.localdomain (8.12.10/8.12.10/Submit) id i4B6xhIY007411; Tue, 11 May 2004 09:59:43 +0300 X-Authentication-Warning: localhost.localdomain: hannu set sender to hannu@tm.ee using -f Subject: Re: Adding MERGE to the TODO list (resend with subject) From: Hannu Krosing To: Bruce Momjian Cc: Christopher Kings-Lynne , Alvaro Herrera , elein , PostgreSQL-development In-Reply-To: <200405102126.i4ALQ5f23657@candle.pha.pa.us> References: <200405102126.i4ALQ5f23657@candle.pha.pa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1084258782.4709.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Tue, 11 May 2004 09:59:42 +0300 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200405/482 X-Sequence-Number: 53560 Bruce Momjian kirjutas T, 11.05.2004 kell 00:26: > Hannu Krosing wrote: > > Bruce Momjian kirjutas E, 10.05.2004 kell 06:58: > > > Added to TODO: > > > > > > * Add MERGE command that does UPDATE, or on failure, INSERT > > > > perhaps the issue raised about BEFOR/AFTER INSERT/UPDATE TRIGGERS and > > RULES should get a mention in the TODO (... needs to be discussed, or > > somesuch ...) > > Uh, what was the issue there? I think it is not well defined, which triggers should be run. For example, should BEFORE UPDATE trigger be run and should INSERT be done if BEFORE UPDATE forbids UPDATE. Also how should the rule system act - should there be separate rules for MERGE, or/and should MERGE be expanded by both UPDATE and INSERT rules. --------------- Hannu