Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbsGg-0003W4-EH for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Sep 2015 15:35:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZbsGg-0001kJ-0L for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Sep 2015 15:35:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZbsGf-0001kD-E3 for pgsql-hackers@postgresql.org; Tue, 15 Sep 2015 15:35:37 +0000 Received: from mail-qg0-f46.google.com ([209.85.192.46]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZbsGX-0006Ip-P6 for pgsql-hackers@postgresql.org; Tue, 15 Sep 2015 15:35:36 +0000 Received: by qgt47 with SMTP id 47so145934350qgt.2 for ; Tue, 15 Sep 2015 08:35:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=1e9593bbbS+ZUn2UgQ15vvQ3K+ooT82aq2SjnJ52/Hk=; b=ST3TlxefT/m6zggvYeHZOqCShBYT5M7CoO6qvxS707Sk+qgKzbJjxxvZJgZYek3x4K lrkxvTcgJ68ugZV/4x6+iLzvDfXJGRGd2TpztvsQzI0E+/fKEekvyPNEbfvHv3cvKw54 eai8z7Ulv5mK9iQCjM36Q2+kMVSGhyuOq9HL2RTg8kehk6pItsCTydJqGr8ENgmf4hhA qxRTJwCbo+ZsmL/BOv3V/PVPmoZb5I5Gz4/NxYy0d5H73iH8/LWJOnDyfNehotpyNcfi 58JWNFpIxAy594xeEUYtyvIssr0sOR2jmzrxS8evGKFFjHndf3Oq/N4VR2gz5AhjHCI7 tZiw== X-Gm-Message-State: ALoCoQl9RJa8RIvktYHHLdO2oVrscgZJd2RxFSBtNf1rJyqSXKGZiP6YEnuRbZJGD/nwQ8qtASxb X-Received: by 10.140.101.110 with SMTP id t101mr32502267qge.20.1442331328771; Tue, 15 Sep 2015 08:35:28 -0700 (PDT) Received: from jupiter.onmars.janwieck.no-ip.info (pool-173-49-130-135.phlapa.fios.verizon.net. [173.49.130.135]) by smtp.googlemail.com with ESMTPSA id k64sm8118520qhk.2.2015.09.15.08.35.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 08:35:28 -0700 (PDT) Message-ID: <55F83ABF.2080609@wi3ck.info> Date: Tue, 15 Sep 2015 11:35:27 -0400 From: Jan Wieck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Tom Lane , Kevin Grittner CC: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Fix an O(N^2) problem in foreign key references. References: <10758.1442239007@sss.pgh.pa.us> <55F81C48.4020009@wi3ck.info> <22834.1442325108@sss.pgh.pa.us> <1935.1442329129@sss.pgh.pa.us> In-Reply-To: <1935.1442329129@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 09/15/2015 10:58 AM, Tom Lane wrote: > I wrote: >> Jan Wieck writes: >>> I'm able to reproduce that failure with CLOBBER_CACHE_ALWAYS and it >>> definitely is caused by this commit. Do you want to back it out for the >>> time being? Kevin is on vacation right now. > >> I'll take a look today, and either fix it if I can find the problem >> quickly or back it out. > > The answer is "back it out", because this patch is fundamentally and > irretrievably broken. You can't just clobber the hashtable like that, > because there are very possibly active uses of hashtable entries in > outer function call levels. Ok. Would it be appropriate to use (Un)RegisterXactCallback() in case of detecting excessive sequential scanning of that cache and remove all invalid entries from it at that time? Regards, Jan -- Jan Wieck Senior Software Engineer http://slony.info -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers