Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 058CE9FB255 for ; Sun, 21 Jan 2007 16:08:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 67869-09 for ; Sun, 21 Jan 2007 16:08:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from ds528.dedicated.turbodns.co.uk (ds528.dedicated.turbodns.co.uk [81.21.72.118]) by postgresql.org (Postfix) with ESMTP id 36BAC9FACFE for ; Sun, 21 Jan 2007 16:08:19 -0400 (AST) Received: (qmail 3022 invoked from network); 21 Jan 2007 20:08:17 -0000 Received: from howardnews@selestial.com by ds528.dedicated.turbodns.co.uk by uid 1005 with qmail-scanner-1.22 ( Clear:RC:1(62.3.231.11):. Processed in 0.020583 secs); 21 Jan 2007 20:08:17 -0000 Received: from unknown (HELO ?10.202.6.101?) (selestial-howard.cole@62.3.231.11) by ds528.dedicated.turbodns.co.uk with SMTP; 21 Jan 2007 20:08:17 -0000 Message-ID: <45B3C826.9060503@selestial.com> Date: Sun, 21 Jan 2007 20:08:06 +0000 From: Howard Cole User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: 'PgSql General' Subject: Re: Query Help References: <45B0FA5A.3010106@selestial.com> <17899.1169232759@sss.pgh.pa.us> In-Reply-To: <17899.1169232759@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/1164 X-Sequence-Number: 107704 Tom Lane wrote: > It looks like you have a stale plan for that ON DELETE SET NULL > constraint. Was there perhaps an index on operator_id that you removed? > Postgres is not very good about flushing cached plans when you change > table schemas (something I hope will be fixed in 8.3). > > If that is the problem, starting a fresh session would be enough to take > care of it. > > regards, tom lane > > Thanks Tom. You were, as usual, correct!