X-Original-To: pgsql-hackers-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6C5329FB33E for ; Sun, 10 Sep 2006 13:42:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 01971-06 for ; Sun, 10 Sep 2006 13:41:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 316D89FB1E9 for ; Sun, 10 Sep 2006 13:41:58 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id k8AGevIx014537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Sep 2006 09:41:06 -0700 Message-ID: <45044013.8020003@commandprompt.com> Date: Sun, 10 Sep 2006 09:40:51 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: Gregory Stark CC: Tom Lane , Stephan Szabo , Chris Mair , MAR - Secretariado Geral , pgsql-hackers@postgresql.org Subject: Re: Foreign keys References: <000601c6d463$208cb160$0500a8c0@SECGERAL> <1157877370.26364.11.camel@ultra.home.lan> <87venw6qw3.fsf@enterprisedb.com> <20060910070805.T99308@megazone.bigpanda.com> <6967.1157900971@sss.pgh.pa.us> <87ac57vggk.fsf@stark.xeocode.com> In-Reply-To: <87ac57vggk.fsf@stark.xeocode.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.3, clamav-milter version 0.88.3 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Sun, 10 Sep 2006 09:41:25 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.195 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/832 X-Sequence-Number: 90361 > In any case the same logic that leads to it being desirable to report all the > errors to the user in a UI and not just report them one by one also applies to > the database. I'm not sure it's the most important issue in the world, but it > does seem like a "it would be nice" feature if it reported all the errors in > the statement, not just the first one it finds. > Seems kind of extraneous to me. I am guessing it would cause yet further overhead with our foreign key checks. My testing shows that the use of foreign keys on high velocity single transaction loads, can cause easily a 50% reduction in performance. Why add to that? What we need to be doing is finding a way to decrease the impact of foreign key checks. Sincerely, Joshua D. Drake -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/