Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE
Nico Williams <nico@cryptonector.com>
From: Nico Williams <nico@cryptonector.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Pavel Stehule <pavel.stehule@gmail.com>, Bruce Momjian <bruce@momjian.us>, David Fetter <david@fetter.org>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-02-02T17:50:24Z
Lists: pgsql-hackers
On Thu, Feb 02, 2017 at 12:14:10PM -0500, Tom Lane wrote: > Also, somebody who wants a check like that isn't necessarily going to want > "no WHERE clause" training wheels. So you're going to need to think about > facilities to enable or disable different checks. WHERE-less-ness should be something that should be visible to a statement trigger that could then reject the operation if desirable. Nico --