X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 10681D1B8A8 for ; Thu, 28 Aug 2003 17:26:12 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 58776-02 for ; Thu, 28 Aug 2003 14:25:41 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id D4C8FD1B8AC for ; Thu, 28 Aug 2003 14:25:39 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19sQWi-0000gG-00 for ; Thu, 28 Aug 2003 13:25:40 -0400 Received: by dba2 (Postfix, from userid 1019) id E92E7D0AA; Thu, 28 Aug 2003 13:25:39 -0400 (EDT) Date: Thu, 28 Aug 2003 13:25:39 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: performance of foreign key constraints Message-ID: <20030828172539.GA17195@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/424 X-Sequence-Number: 3240 On Thu, Aug 28, 2003 at 06:15:57PM +0100, teknokrat wrote: > I have a table that has about 20 foreign key constraints on it. I think > this is a bit excessive and am considering removing them ( they are all > related to the same table and I don't think there is much chance of any > integrity violations ). Would this improve performance or not? Almost certainly. But there's probably room for some middle ground between 20 and none. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110