Re: DELETE ... USING - Mailing list pgsql-patches

From Neil Conway
Subject Re: DELETE ... USING
Date
Msg-id 42521009.5080600@samurai.com
Whole thread Raw
In response to Re: DELETE ... USING  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: DELETE ... USING  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> ... but when it is TRUE, there should be a notice, same as there is in
> SELECT.  UPDATE should produce such a notice too, IMHO.  Probably we
> omitted the message originally because there was no way to avoid it
> in a DELETE, but now there will be.

Well, my previous message described why I'm not sure that this line of
reasoning is correct. I think the only really proper configuration is
add_missing_from=false and an explicit USING/FROM list. Just about the
only reason to enable add_missing_from would be for compatibility with
previous releases of PostgreSQL -- and that "compatible" behavior is not
to issue a warning for UPDATE and DELETE in this situation. If the user
deliberately enables add_missing_from, I'm inclined to trust them that
they know what they're doing.

-Neil

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: DELETE ... USING
Next
From: Tom Lane
Date:
Subject: Re: DELETE ... USING