Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjaiR-0006st-9a for pgsql-performance@arkaria.postgresql.org; Fri, 14 Dec 2012 19:14:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TjaiQ-000197-M7 for pgsql-performance@arkaria.postgresql.org; Fri, 14 Dec 2012 19:14:34 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjaiP-00018M-Hb for pgsql-performance@postgresql.org; Fri, 14 Dec 2012 19:14:33 +0000 Received: from mailout-us.gmx.com ([74.208.5.67]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TjaiO-0000GV-8c for pgsql-performance@postgresql.org; Fri, 14 Dec 2012 19:14:32 +0000 Received: (qmail 7311 invoked by uid 0); 14 Dec 2012 19:14:30 -0000 Received: from 76.255.19.161 by rms-us006 with HTTP Cc: "Evgeny Shishkin" ,"Tom Lane" ,"Andrew Dunstan" ,"postgres performance list" Content-Type: text/plain; charset="utf-8" Date: Fri, 14 Dec 2012 14:14:27 -0500 From: "Kevin Grittner" Message-ID: <20121214191427.80090@gmx.com> MIME-Version: 1.0 Subject: Re: Why does the number of rows are different in actual and estimated. To: "AI Rumman" , "Claudio Freire" X-Authenticated: #138763884 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: xB+5cC1+3zOlOQ09Lnwht3d+IGRvb4A0 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org AI Rumman wrote: > Claudio Freire 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