Re: pg_dump restore time and Foreign Keys - Mailing list pgsql-hackers

From Robert Treat
Subject Re: pg_dump restore time and Foreign Keys
Date
Msg-id 200806081945.33732.xzilla@users.sourceforge.net
Whole thread Raw
In response to Re: pg_dump restore time and Foreign Keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_dump restore time and Foreign Keys  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Saturday 07 June 2008 16:22:56 Tom Lane wrote:
> Simon Riggs <simon@2ndquadrant.com> 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: handling TOAST tables in autovacuum
Next
From: Robert Treat
Date:
Subject: Re: Overhauling GUCS