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 70FB6D1B30B for ; Tue, 11 May 2004 10:46:35 -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 09127-01 for ; Tue, 11 May 2004 10:46:02 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id C45B0D1B385 for ; Tue, 11 May 2004 10:45:57 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i4BDiQj06463; Tue, 11 May 2004 09:44:26 -0400 (EDT) From: Bruce Momjian Message-Id: <200405111344.i4BDiQj06463@candle.pha.pa.us> Subject: Re: Adding MERGE to the TODO list (resend with subject) In-Reply-To: <1084258782.4709.7.camel@localhost.localdomain> To: Hannu Krosing Date: Tue, 11 May 2004 09:44:26 -0400 (EDT) Cc: Christopher Kings-Lynne , Alvaro Herrera , elein , PostgreSQL-development X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/483 X-Sequence-Number: 53561 Hannu Krosing wrote: > 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. OK, I added information to TODO questioning how to handle rules and triggers. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073