Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE
Teodor Sigaev <teodor@sigaev.ru>
From: Teodor Sigaev <teodor@sigaev.ru>
To: David Fetter <david@fetter.org>,
PostgreSQL Development <pgsql-hackers@postgresql.org>
Date: 2016-07-21T15:20:37Z
Lists: pgsql-hackers
> Please find attached a patch which makes it possible to disallow
> UPDATEs and DELETEs which lack a WHERE clause. As this changes query
> behavior, I've made the new GUCs PGC_SUSET.
>
> What say?
DELETE FROM tbl WHERE true; ?
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/