|From:||Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>|
|To:||David Fetter <david(at)fetter(dot)org>|
|Cc:||PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>|
|Subject:||Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
David Fetter <david(at)fetter(dot)org> writes:
> 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?
-1. This is an express violation of the SQL standard, and at least the
UPDATE case has reasonable use-cases. Moreover, if your desire is to have
training wheels for SQL, there are any number of other well-known gotchas
that are just as dangerous, for example ye olde unintentionally-correlated
I wouldn't have any objection to an extension that enforces rules like
these, but I don't think it belongs in core.
regards, tom lane
|Next Message||Joshua D. Drake||2016-07-21 13:59:06||Re: PoC: Make it possible to disallow WHERE-less UPDATE and DELETE|
|Previous Message||Dilip Kumar||2016-07-21 13:49:15||Re: Unexpected memory usage for repeated inserts within plpgsql function|