pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@mail.com>
To: AI Rumman <rummandba@gmail.com>
To: Claudio Freire <klaussfreire@gmail.com>
Cc: Evgeny Shishkin <itparanoia@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: Why does the number of rows are different in actual and estimated.
Date: Fri, 14 Dec 2012 14:14:27 -0500
Message-ID: <20121214191427.80090@gmx.com> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

AI Rumman wrote:
> Claudio Freire <klaussfreire@gmail.com>wrote:
>> I think it's more likely a missing FK constraint.

> Does FK Constraint help to improve performance? Or it is only
> for maintaining data integrity?

I'm not aware of any situation where adding a foreign key
constraint would improve performance.

-Kevin


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (20+ messages)  latest in thread

Message-ID: <20121214191427.80090@gmx.com>
Permalink:  ../20121214191427.80090@gmx.com/
Also on:    postgresql.org/message-id/20121214191427.80090@gmx.com

 · 

reply

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: kgrittn@mail.com, rummandba@gmail.com, klaussfreire@gmail.com, itparanoia@gmail.com, tgl@sss.pgh.pa.us, andrew@dunslane.net
  Subject: Re: Why does the number of rows are different in actual and estimated.
  In-Reply-To: <20121214191427.80090@gmx.com>

* 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