X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6E7789FA5E1 for ; Wed, 31 May 2006 18:50:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 80422-08 for ; Wed, 31 May 2006 18:50:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 6502C9FA5E9 for ; Wed, 31 May 2006 18:50:21 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k4VLoJ30022510; Wed, 31 May 2006 17:50:19 -0400 (EDT) To: =?ISO-8859-2?Q?Miroslav_=A9ulc?= cc: pgsql-sql@postgresql.org Subject: Re: DELETE ... USING ... - 8.0 and 8.1 compatibility problem In-reply-to: <447E0BF3.2040707@startnet.cz> References: <447E0BF3.2040707@startnet.cz> Comments: In-reply-to =?ISO-8859-2?Q?Miroslav_=A9ulc?= message dated "Wed, 31 May 2006 23:34:43 +0200" Date: Wed, 31 May 2006 17:50:19 -0400 Message-ID: <22509.1149112219@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/205 X-Sequence-Number: 25236 =?ISO-8859-2?Q?Miroslav_=A9ulc?= writes: > The problem is that I have application deployed both on pg 8.0 and pg > 8.1. This syntax (using USING) is only valid for 8.1+ and syntax without > USING is only valid for 8.0 and not for 8.1. I could write it using IN > operators which works in both versions but the slowdown is not acceptable. Set add_missing_from TRUE ... regards, tom lane