"DELETE FROM" protection

Поиск
Список
Период
Сортировка
От Jeremy Smith
Тема "DELETE FROM" protection
Дата
Msg-id FKEOIJEHOIKIOEHCGNCLIENNEDAA.jer@highboard.com
обсуждение исходный текст
Ответ на Re: Help - postgresql 7.0 and cannot read block 7959 of pg_log  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: "DELETE FROM" protection
Список pgsql-admin
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


В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Help - postgresql 7.0 and cannot read block 7959 of pg_log
Следующее
От: "Matt Clark"
Дата:
Сообщение: Re: "DELETE FROM" protection