Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 9100B2E00A6 for ; Sun, 8 Jun 2008 20:46:05 -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 19752-01 for ; Sun, 8 Jun 2008 20:45:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by developer.postgresql.org (Postfix) with ESMTP id E068F2E00A5 for ; Sun, 8 Jun 2008 20:45:59 -0300 (ADT) Received: from ridley.home ([71.179.5.175]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K26002X14NYP41A@vms046.mailsrvcs.net> for pgsql-hackers@postgresql.org; Sun, 08 Jun 2008 18:45:35 -0500 (CDT) Date: Sun, 08 Jun 2008 19:45:33 -0400 From: Robert Treat Subject: Re: pg_dump restore time and Foreign Keys In-reply-to: <23219.1212870176@sss.pgh.pa.us> To: Tom Lane Cc: Simon Riggs , pgsql-hackers@postgresql.org, Andrew Dunstan Message-id: <200806081945.33732.xzilla@users.sourceforge.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-15 Content-transfer-encoding: 7bit Content-disposition: inline References: <1212647003.19964.19.camel@ebony.site> <1212860515.12046.78.camel@ebony.site> <23219.1212870176@sss.pgh.pa.us> User-Agent: KMail/1.9.9 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/360 X-Sequence-Number: 119473 On Saturday 07 June 2008 16:22:56 Tom Lane wrote: > Simon Riggs writes: > > Perhaps we need a GUC that says expert_mode = on. ... Another idea > > might be to make such command options superuser only, to ensure the > > power is available, yet only in the hands of, by-definition, the trusted > > few. > > This all seems pretty useless, as the sort of user most likely to shoot > himself in the foot will also always be running as superuser. > yeah, i'm not a big fan of "set enable_footgun=true" since the people likely to get tripped up are going to blindly enable these modes. otoh, if we do such a thing, i would be a big fan of calling it "enable_footgun" :-) > I'd much rather see us expend more effort on speeding up the checks > than open holes in the system. > and i'm sure no one is against that idea, but you're never going to be able to match the performance of just avoiding the check. -- Robert Treat Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL