Re: [PATCHES] DELETE ... USING

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCHES] DELETE ... USING
Date: 2005-04-10 22:49:29
Message-ID: 200504101549.29311.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce,

> If everyone else is OK with having it fail, that is fine with me, but I
> wanted to make sure folks saw this was happening.  I basically saw no
> discussion that we were disabling that syntax.  [CC moved to hackers.]

I believe we hashed this out when we added add_missing_from back in 7.3.

In any case, yes, making that kind of query fail is intentional. So it should
go in the release notes as a warning. Suggested text:

====================
add_missing_from now defaults to "true". This means that queries such as the
following:
SELECT pg_class.*;
DELETE FROM table_1 WHERE table_2.fk = table_1.key AND table_2.col3 = TRUE;
... will no fail with default settings. Either set add_missing_from to TRUE
to re-enable them, or modify your application to support the correct syntax,
such as the new DELETE FROM ... USING (see below).
====================

--
Josh Berkus
Aglio Database Solutions
San Francisco

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2005-04-10 23:10:29 System vs non-system casts
Previous Message Euler Taveira de Oliveira 2005-04-10 22:17:29 Re: Case Sensitivity