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

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: [HACKERS] PoC: Make it possible to disallow WHERE-less UPDATEand DELETE
Дата
Msg-id 20170109223656.GB13529@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  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On Sun, Jan 08, 2017 at 06:50:12PM -0600, Jim Nasby wrote:
> On 1/5/17 12:04 AM, David Fetter wrote:
> > +                     errmsg("UPDATE requires a WHERE clause when require_where.delete is set to on"),
> 
> ISTM that message is no longer true.
> 
> The second if could also be an else if too.

I refactored this into one case and removed some fluff, some of which
was never needed, some of which is no longer.

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

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Increase pltcl test coverage
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] ALTER TABLE .. ALTER COLUMN .. ERROR: attribute .. haswrong type