Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 7BA912E008E for ; Mon, 9 Jun 2008 12:44:59 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 29131-06 for ; Mon, 9 Jun 2008 12:44:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail128146.authsmtp.co.uk (outmail128146.authsmtp.co.uk [62.13.128.146]) by developer.postgresql.org (Postfix) with ESMTP id 24FDD2E0067 for ; Mon, 9 Jun 2008 12:44:54 -0300 (ADT) Received: from mail-c188.authsmtp.com (mail-c188.authsmtp.com [62.13.128.25]) by punt3.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m59Fiigv045072; Mon, 9 Jun 2008 16:44:44 +0100 (BST) Received: from [192.168.0.3] (85-211-228-245.dyn.gotadsl.co.uk [85.211.228.245]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m59Fihtm087073; Mon, 9 Jun 2008 16:44:43 +0100 (BST) Subject: Re: pg_dump restore time and Foreign Keys From: Simon Riggs To: Tom Lane Cc: Decibel! , Andrew Dunstan , Robert Treat , pgsql-hackers@postgresql.org In-Reply-To: <19956.1213025599@sss.pgh.pa.us> References: <1212647003.19964.19.camel@ebony.site> <4847D4A7.70309@dunslane.net> <1212670595.19964.55.camel@ebony.site> <200806071308.00845.xzilla@users.sourceforge.net> <1212860515.12046.78.camel@ebony.site> <484ADAD4.2080701@dunslane.net> <19362.1213023432@sss.pgh.pa.us> <1213024379.12046.111.camel@ebony.site> <19956.1213025599@sss.pgh.pa.us> Content-Type: text/plain Date: Mon, 09 Jun 2008 16:48:05 +0100 Message-Id: <1213026485.12046.123.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: fb259bd9-363a-11dd-aecc-001871e930f4 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacxtFaAxbZ0xf HGQLW1xEUVt7XWd/ bw4fZQBDYEtPQQdo WFZLRldNFgBqBAMB SEMbW28rL0EbeHZ3 ZUFhEHFcWUM0IxR/ R0cGQWQbZmFjOX0e URQMalIBI1BXfh9E Yld+AXoOYTMDKBg1 TUcAHxkaHhhlExEd Wg46IU8XWQ4REyUg QAoPVSkuGEBNTiM/ ZzIhMFMdE0BZEUgj KjNh X-Authentic-SMTP: 61633235383639.cat.dmpriest.net.uk:1045/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/398 X-Sequence-Number: 119511 On Mon, 2008-06-09 at 11:33 -0400, Tom Lane wrote: > Simon Riggs writes: > > On Mon, 2008-06-09 at 10:57 -0400, Tom Lane wrote: > >> Ah, finally a useful comment. I think it might be possible to do an > >> "add FK concurrently" type of command that would take exclusive lock > > > That's good, but it doesn't solve the original user complaint about > > needing to re-run many, many large queries to which we already know the > > answer. > > No, we are running a large query to which the user *thinks* he knows the > answer. There are any number of reasons why he might be wrong. Of course. I should have said "to which we already know the answer" to indicate I'm passing on others' criticisms of us. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support