Re: foreign key performance

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: postgresql performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: foreign key performance
Date: 2005-04-22 03:55:21
Message-ID: 20050422035521.GE24057@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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[(at)]dcc(dot)uchile(dot)cl>)
"Ciencias políticas es la ciencia de entender por qué
los políticos actúan como lo hacen" (netfunny.com)

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Gavin Sherry 2005-04-22 03:57:17 Re: two queries and dual cpu (perplexed)
Previous Message Shoaib Burq (VPAC) 2005-04-22 03:33:31 Re: two queries and dual cpu (perplexed)