Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE - Mailing list pgsql-hackers

From Nico Williams
Subject Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE
Date
Msg-id 20170202175023.GA30233@localhost
Whole thread Raw
In response to Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATE and DELETE  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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
-- 



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: [HACKERS] Provide list of subscriptions and publications inpsql's completion
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Enabling replication connections by default inpg_hba.conf