Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfVlG-0001M4-4W for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Sep 2015 16:22:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZfVlF-00021B-Ln for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Sep 2015 16:22:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZfVlE-00020Q-Dr for pgsql-hackers@postgresql.org; Fri, 25 Sep 2015 16:22:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZfVlB-0002ep-Gs; Fri, 25 Sep 2015 16:22:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t8PGM7Ci009936; Fri, 25 Sep 2015 12:22:07 -0400 From: Tom Lane To: Jan Wieck cc: Kevin Grittner , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Fix an O(N^2) problem in foreign key references. In-reply-to: <5605582E.1010209@wi3ck.info> References: <10758.1442239007@sss.pgh.pa.us> <55F81C48.4020009@wi3ck.info> <22834.1442325108@sss.pgh.pa.us> <1935.1442329129@sss.pgh.pa.us> <55F83ABF.2080609@wi3ck.info> <4716.1442332474@sss.pgh.pa.us> <55F84112.8020307@wi3ck.info> <55FB7089.1030702@wi3ck.info> <16320.1442587639@sss.pgh.pa.us> <5605582E.1010209@wi3ck.info> Comments: In-reply-to Jan Wieck message dated "Fri, 25 Sep 2015 10:20:30 -0400" Date: Fri, 25 Sep 2015 12:22:07 -0400 Message-ID: <9935.1443198127@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Jan Wieck writes: > On 09/18/2015 10:47 AM, Tom Lane wrote: >> Attached is something closer to what I was envisioning; can you do >> performance testing on it? > Yes, that patch also has the desired performance for restoring a schema > with hundreds of thousands of foreign key constraints. Great, thanks for checking. I'll push it in a moment. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers