X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 05CCFD1B53A for ; Fri, 15 Aug 2003 05:37:16 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 85183-06 for ; Fri, 15 Aug 2003 02:37:06 -0300 (ADT) Received: from houston.familyhealth.com.au (unknown [203.59.48.253]) by svr1.postgresql.org (Postfix) with ESMTP id 11335D1C50D for ; Fri, 15 Aug 2003 02:37:04 -0300 (ADT) Received: from mars (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (8.12.9/8.12.9) with SMTP id h7F5abLt057027; Fri, 15 Aug 2003 13:36:37 +0800 (WST) (envelope-from chriskl@familyhealth.com.au) Message-ID: <255501c362f0$909590e0$2800a8c0@mars> From: "Christopher Kings-Lynne" To: "Stephan Szabo" Cc: "Bruce Momjian" , "Peter Childs" , "PostgreSQL-development" References: <20030814221643.R6090-100000@megazone.bigpanda.com> Subject: Re: [GENERAL] 7.4Beta Date: Fri, 15 Aug 2003 13:46:25 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/794 X-Sequence-Number: 42451 > > I can also attest to the horrendously long time it takes to restore the ADD > > FOREIGN KEY section... > > That really needs to be rewritten to do a single check over the table > rather than running the constraint for every row. I keep meaning to get > around to it and never actually do. :( I'm not sure that in practice > you'll get a better plan at restore time depending on what the default > statistics give you. Surely in the default case it would reduce to using the new hashed IN() feature, so it'd be a lot faster? Chris