From: Alvaro Herrera <alvherre@dcc.uchile.cl>
To: postgresql performance list <pgsql-performance@postgresql.org>
Subject: Re: foreign key performance
Date: Thu, 21 Apr 2005 23:55:21 -0400
Message-ID: <20050422035521.GE24057@dcc.uchile.cl> (raw)
In-Reply-To: <20050422000615.GA10930@nibiru.borg.metux.de>
References: <20050422000615.GA10930@nibiru.borg.metux.de>
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 (<alvherre[@]dcc.uchile.cl>)
"Ciencias políticas es la ciencia de entender por qué
los políticos actúan como lo hacen" (netfunny.com)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: alvherre@dcc.uchile.cl
Subject: Re: foreign key performance
In-Reply-To: <20050422035521.GE24057@dcc.uchile.cl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox