Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A4A3C2E42C0 for ; Thu, 20 Dec 2007 16:04:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 79495-06-2 for ; Thu, 20 Dec 2007 16:04:37 -0400 (AST) Received: from outmail128067.authsmtp.com (outmail128067.authsmtp.com [62.13.128.67]) by postgresql.org (Postfix) with ESMTP id 60A7E2E3B49 for ; Thu, 20 Dec 2007 16:04:37 -0400 (AST) Received: from outmail128180.authsmtp.com (outmail128180.authsmtp.com [62.13.128.180]) by punt4.authsmtp.com (8.14.1/8.14.1/Kp) with ESMTP id lBKK4Zvv090445 for ; Thu, 20 Dec 2007 20:04:36 GMT Received: from dialup-4.242.232.70.dial1.seattle1.level3.net (dialup-4.242.232.70.Dial1.Seattle1.Level3.net [4.242.232.70]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id lBKK4XAu093857 for ; Thu, 20 Dec 2007 20:04:34 GMT From: Josh Berkus Organization: PostgreSQL @ Sun To: pgsql-hackers@postgresql.org Subject: Re: VLDB Features Date: Thu, 20 Dec 2007 12:04:26 -0800 User-Agent: KMail/1.9.7 References: <1197371508.4255.1327.camel@ebony.site> <1197717031.7974.23.camel@hannu-laptop> <26961.1197826056@sss.pgh.pa.us> In-Reply-To: <26961.1197826056@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712201204.26940.josh@agliodbs.com> X-Server-Quench: c96c734c-af36-11dc-814e-001185d377ca X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkbIhBDJB8JXA9S P1xBBkJUK0ETX1xC QjoVBBYDHl9xRhcg OBVTbQVackhOVQVu WktMDFZMFgFqHx4C BAAZUgZwcgdDZ34+ OTQZJXQzLQF6fEV1 R0kaFGUAYykzYWZM V0NcJB4FJgBMYx5E PgNiXHIJNHgHZnth T1I/ZG9uNjxJEikH CjItBHkxbHwwK3YC YzwoVRsiFFEYXSgo RyAn X-Authentic-SMTP: 61633136333939.squirrel.dmpriest.net.uk:787/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: 200712/778 X-Sequence-Number: 112067 Tom, > Sure ... but you'll find that it's not large enough to be useful. > Once you remove all the interesting consistency checks such as > unique indexes and foreign keys, the COPY will tend to go through > just fine, and then you're still stuck trying to weed out bad data > without very good tools for it. The only errors we could really > separate out without subtransaction fencing are extremely trivial > ones like too many or too few fields on a line ... which can be > caught with a sed script. Speaking as someone who did a LOT of DW load design only a couple years ago, I'll say that the "special case" of no triggers, no constraint checks except length, and type-safety check actually constitutes about 50% of DW bulk loading. The only exception to that is unique indexes, which would normally be included and would be the difficult thing. Also, "special case bulk loading" would in fact give users of other types of applications a lot more flexibility -- they could always load into a holding table just to clean up the type safety issues and then merge into the real table. So I don't agree that the "load into new partition without dependancies" is too much of a special case to be worth pursuing. It might be a bad idea for other reasons, but not because it's too obscure. --Josh