From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | PoC: Make it possible to disallow WHERE-less UPDATE and DELETE |
Date: | 2016-07-21 04:57:46 |
Message-ID: | 20160721045746.GA25043@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Folks,
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?
Thanks to Gurjeet Singh for the idea and Andrew Gierth for the tips
implementing.
Best,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
Attachment | Content-Type | Size |
---|---|---|
training_wheels_001.patch | text/plain | 5.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Satoshi Nagayasu | 2016-07-21 05:12:31 | Re: DROP OWNED BY ... CACADE & "could not open relation with OID" error |
Previous Message | Alvaro Herrera | 2016-07-21 04:53:52 | Re: DROP OWNED BY ... CACADE & "could not open relation with OID" error |