Re: "DELETE FROM" protection - Mailing list pgsql-admin

From Matt Clark
Subject Re: "DELETE FROM" protection
Date
Msg-id OAEAKHEHCMLBLIDGAFELGEKFEMAA.matt@ymogen.net
Whole thread Raw
In response to "DELETE FROM" protection  ("Jeremy Smith" <jer@highboard.com>)
Responses Re: "DELETE FROM" protection
List pgsql-admin
BEGIN;
DELETE FROM mytable;
!!! OOOPS !!!!
ROLLBACK;


> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jeremy Smith
> Sent: 20 February 2004 06:06
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] "DELETE FROM" protection
>
>
>
> This may be an all-time idiotic question, but when I used phpmysql, when I
> would type in a "DELETE FROM" query in the SQL window, it would make me
> confirm it before I allowed it to go through.  I don't think in all of the
> presumably thousands of times that I used it that I ever canceled out of the
> statement, but I always liked that it is there.
>
> So now with pgsql, when I am typing "DELETE FROM...." until I get to the
> "WHERE" part of the statement, I get a little nervous because I know hitting
> Enter by mistake will wipe out that table.  Of course, I have backups, but
> it is a live site with alot of traffic and I would hate to have to shut
> things down while I restored the DB.
>
> Anyway, this may all seem silly, but is there a setting in pgsql to do this?
>
> Thanks,
> Jeremy
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings


pgsql-admin by date:

Previous
From: "Jeremy Smith"
Date:
Subject: "DELETE FROM" protection
Next
From: Dave Ewart
Date:
Subject: Re: "DELETE FROM" protection