Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 55A1C1337B81 for ; Fri, 17 Dec 2010 02:54:27 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 44954-06 for ; Fri, 17 Dec 2010 06:54:19 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 38D951337B49 for ; Fri, 17 Dec 2010 02:54:19 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id oBH6sJCe019815 for ; Fri, 17 Dec 2010 02:54:19 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id oBH6ruds018087 for pgsql-performance@postgresql.org; Fri, 17 Dec 2010 02:53:56 -0400 (AST) (envelope-from news) From: Eric Comeau X-Newsgroups: pgsql.performance Subject: Re: How to get FK to use new index without restarting the database Date: Fri, 17 Dec 2010 01:53:56 -0500 Organization: Hub.Org Networking Services Lines: 21 Message-ID: References: <22394.1292516874@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 In-Reply-To: <22394.1292516874@sss.pgh.pa.us> To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/201 X-Sequence-Number: 41653 On 10-12-16 11:27 AM, Tom Lane wrote: > Eric Comeau writes: >> Is there a way force the db to re-evaluate its execution plan for a FK >> without bouncing the DB? > >> PostgreSQL 8.1.17 > > You don't need to bounce the whole DB, but you will need to start fresh > sessions. We didn't add automatic invalidation of those plans until 8.3. > > regards, tom lane > We confirmed that disconnecting and reconnecting resolves the issue. Thanks to all that helped. I replied to Tom and the list yesterday from my e-mail, but I don't see my reply here, so it must be stuck in the ether somewhere.... Eric