X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0560E53569 for ; Fri, 22 Apr 2005 00:55:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85574-07 for ; Fri, 22 Apr 2005 03:55:33 +0000 (GMT) Received: from sunsite.dcc.uchile.cl (sunsite.dcc.uchile.cl [192.80.24.2]) by svr1.postgresql.org (Postfix) with ESMTP id 86D1F5345D for ; Fri, 22 Apr 2005 00:55:22 -0300 (ADT) Received: from anakena.dcc.uchile.cl (anakena [192.80.24.6]) by sunsite.dcc.uchile.cl (8.12.11/8.12.11) with ESMTP id j3M3tM8T017333 for ; Thu, 21 Apr 2005 23:55:22 -0400 (CLT) Received: by anakena.dcc.uchile.cl (Postfix, from userid 4151) id EF2DB52EA3; Thu, 21 Apr 2005 23:55:21 -0400 (CLT) Date: Thu, 21 Apr 2005 23:55:21 -0400 From: Alvaro Herrera To: postgresql performance list Subject: Re: foreign key performance Message-ID: <20050422035521.GE24057@dcc.uchile.cl> References: <20050422000615.GA10930@nibiru.borg.metux.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050422000615.GA10930@nibiru.borg.metux.de> User-Agent: Mutt/1.5.8i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.342 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200504/604 X-Sequence-Number: 12001 On Fri, Apr 22, 2005 at 02:06:15AM +0200, Enrico Weigelt wrote: > do foreign keys have any influence on performance (besides slowing > down huge inserts) ? do they bring any performance improvement ? No. They only cause additional tables to be visited to enforce them. -- Alvaro Herrera () "Ciencias políticas es la ciencia de entender por qué los políticos actúan como lo hacen" (netfunny.com)