Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE

Поиск
Список
Период
Сортировка
Искать
От
Vik Fearing
Тема
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE
Дата
Msg-id
07ab32b2-6580-3476-92e8-838c8b00df84@2ndquadrant.fr
Ответ на
Список
Дерево обсуждения
PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Vik Fearing <vik@2ndquadrant.fr>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Tom Lane <tgl@sss.pgh.pa.us>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Peter van Hardenberg <pvh@pvh.ca>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Vik Fearing <vik@2ndquadrant.fr>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Vik Fearing <vik@2ndquadrant.fr>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Teodor Sigaev <teodor@sigaev.ru>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Robert Haas <robertmhaas@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Abhijit Menon-Sen <ams@2ndQuadrant.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Robert Haas <robertmhaas@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Robert Haas <robertmhaas@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Robert Haas <robertmhaas@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Robert Haas <robertmhaas@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Thomas Munro <thomas.munro@enterprisedb.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Thomas Munro <thomas.munro@enterprisedb.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Thomas Munro <thomas.munro@enterprisedb.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Thomas Munro <thomas.munro@enterprisedb.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Thomas Munro <thomas.munro@enterprisedb.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATE andDELETE Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Julien Rouhaud <julien.rouhaud@dalibo.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Julien Rouhaud <julien.rouhaud@dalibo.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Thomas Munro <thomas.munro@enterprisedb.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Michael Paquier <michael.paquier@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Michael Paquier <michael.paquier@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Thomas Munro <thomas.munro@enterprisedb.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Rushabh Lathia <rushabh.lathia@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Tom Lane <tgl@sss.pgh.pa.us>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Bruce Momjian <bruce@momjian.us>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE "Joshua D. Drake" <jd@commandprompt.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Amit Kapila <amit.kapila16@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Craig Ringer <craig@2ndquadrant.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Jim Mlodgenski <jimmy76@gmail.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE David Fetter <david@fetter.org>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATE and DELETE Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE David Fetter <david@fetter.org>
On 21/07/16 06:57, David Fetter wrote:
> 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?

I say I don't like this at all.

As mentioned elsewhere in the thread, you can just do WHERE true to get
around it, so why on Earth have it PGC_SUSET?

I would rather, if we need nannying at all, have a threshold of number
of rows affected.  So if your update or delete exceeds that threshold,
the query will be canceled.
-- 
Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Why we lost Uber as a user
От: Josh Berkus
Дата:
Сообщение: Re: Why we lost Uber as a user
FAQ