From: Jeremy Smith <jer@highboard.com>
To: pgsql-admin@postgresql.org
Subject: "DELETE FROM" protection
Date: Fri, 20 Feb 2004 01:05:33 -0500
Message-ID: <FKEOIJEHOIKIOEHCGNCLIENNEDAA.jer@highboard.com> (raw)
In-Reply-To: <1832.1077202193@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jer@highboard.com
Subject: Re: "DELETE FROM" protection
In-Reply-To: <FKEOIJEHOIKIOEHCGNCLIENNEDAA.jer@highboard.com>
References: <1832.1077202193@sss.pgh.pa.us> <FKEOIJEHOIKIOEHCGNCLIENNEDAA.jer@highboard.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox