Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 30B9D476809 for ; Thu, 16 Jan 2003 11:06:25 -0500 (EST) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id 3D5A24766ED for ; Thu, 16 Jan 2003 11:05:17 -0500 (EST) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 18ZCWA-0000Z2-00 for ; Thu, 16 Jan 2003 11:05:22 -0500 Date: Thu, 16 Jan 2003 11:05:22 -0500 From: Andrew Sullivan To: PgSQL Performance ML Subject: Re: schema/db design wrt performance Message-ID: <20030116110522.F32288@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , PgSQL Performance ML References: <20030116135140.32097.qmail@web21106.mail.yahoo.com> <20030116092005.C22344@mail.libertyrms.com> <1042727678.892.31.camel@haggis> <20030116103933.B32288@mail.libertyrms.com> <1042732204.892.35.camel@haggis> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1042732204.892.35.camel@haggis>; from ron.l.johnson@cox.net on Thu, Jan 16, 2003 at 09:50:04AM -0600 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/153 X-Sequence-Number: 800 On Thu, Jan 16, 2003 at 09:50:04AM -0600, Ron Johnson wrote: > > Could BEFORE INSERT|UPDATE|DELETE triggers perform the same > functionality while touching only the desired records, thus > decreasing conflict? You can make the constraint DEFERRABLE INITIALY DEFERRED. It helps somewhat. But the potential for deadlock, and the backing up, will still happen to some degree. It's a well-known flaw in the FK system. I beleive the FK implementation was mostly intended as a proof of concept. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110