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 DD3E3D1B8E3 for ; Thu, 28 Aug 2003 19:22:34 +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 73388-09 for ; Thu, 28 Aug 2003 16:22:24 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id C5857D1B8AE for ; Thu, 28 Aug 2003 16:22:22 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h7SJMMek050430 for ; Thu, 28 Aug 2003 19:22:22 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h7SJGvcp038757 for pgsql-performance@postgresql.org; Thu, 28 Aug 2003 19:16:57 GMT From: teknokrat X-Newsgroups: comp.databases.postgresql.performance Subject: Re: performance of foreign key constraints Date: Thu, 28 Aug 2003 20:16:59 +0100 Organization: Hub.Org Networking Services Lines: 16 Message-ID: References: <20030828102646.Q9762-100000@megazone.bigpanda.com> <1062097097.79027.214.camel@jester> Reply-To: teknokrat@yahoo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0+) Gecko/20020518 X-Accept-Language: en-us, en, ko In-Reply-To: <1062097097.79027.214.camel@jester> To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/440 X-Sequence-Number: 3256 Rod Taylor wrote: >>The references are all to the same table i.e. they are employee ids, so >>leaving some and not others would make no sense. The table has no >>deletes, small amount of inserts and moderate amount of updates. However >>there are many selects and its their performance I am most concerned with. > > > Foreign keys have no impact on selects. > > Although this does sound like a rather strange design to me (20+ columns > wide and they're all employee ids?) There are more than 20 fieldss. Its a report that can get updated by different employees and we wish to keep a record of which employee completed which section. Couldn't think of any other way to do it.