X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 26B139DC838 for ; Mon, 2 Jan 2006 09:28:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 07322-07 for ; Mon, 2 Jan 2006 09:28:32 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by postgresql.org (Postfix) with ESMTP id 0DA339DC835 for ; Mon, 2 Jan 2006 09:28:26 -0400 (AST) Received: by zproxy.gmail.com with SMTP id l8so1600472nzf for ; Mon, 02 Jan 2006 05:28:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Bjcz0etoqYbWKECsSEp0iOqdYU8nIpjbASQXiIVPLdQCP+WeCYStI3BVOHe1jPYIAC0GGMKk1JIiHkaw8MiLE9hOW6foGLN/ykMCc9QKZhlmQQbBm3/RHJK7Rx2kgGdA0yUZ0QJ5pgUCqF7BHOdd/mWF7XrVfuPav5O5+tXFIDk= Received: by 10.64.183.9 with SMTP id g9mr180766qbf; Mon, 02 Jan 2006 05:28:30 -0800 (PST) Received: by 10.64.232.7 with HTTP; Mon, 2 Jan 2006 05:28:30 -0800 (PST) Message-ID: Date: Mon, 2 Jan 2006 13:28:30 +0000 From: Peter Childs To: pgsql-sql@postgresql.org Subject: delete from a using b in postgres 8.1. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7700_20586447.1136208510573" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.415 required=5 tests=[AWL=0.772, HTML_00_10=0.642, HTML_MESSAGE=0.001] X-Spam-Score: 1.415 X-Spam-Level: * X-Archive-Number: 200601/8 X-Sequence-Number: 23797 ------=_Part_7700_20586447.1136208510573 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline a command such as delete from a using b where a.one=3Db.one and b.two=3D'foo'; works fine in 8.1 but fails totally in 8.0 however delete from a where a.one=3Db.one and b.two=3D'foo'; works fine in 8.0 and bellow but fails in 8.1 unless you have the add_missing_from option set to true in 8.1 Even then it produces a nasty warning. This can break tones of clients admittedly the work around is quick but not particularly neat. What do the other sql database do and is this just another inconstancy in SQL? I realise this was done to fix a bug but its a nasty sitting there that man= y client developers are going to miss it before it goes back to the end user. I also don't think this has been made particularly clear in changes. Peter Childs ------=_Part_7700_20586447.1136208510573 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline a command such as

delete from a using b where a.one=3Db.one and b.two=3D'foo';

works fine in 8.1 but fails totally in 8.0 however

delete from a where a.one=3Db.one and b.two=3D'foo';

works fine in 8.0 and bellow but fails in 8.1 unless you have the add_missi= ng_from option set to true in 8.1
Even then it produces a nasty warning.

This can break tones of clients admittedly the work around is quick but not particularly neat. What do the other sql database do and is this just another inconstancy in SQL?

I realise this was done to fix a bug but its a nasty sitting there that many client developers are going to miss it before it goes back to the end user. I also don't think  this has been made particularly clear in changes.

Peter Childs
------=_Part_7700_20586447.1136208510573--