Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 2B80F164F48; Sun, 15 Apr 2012 06:16:54 -0300 (ADT) Received: from [87.118.86.135] (helo=km31432.keymachine.de) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SJLZl-0002Eb-BW; Sun, 15 Apr 2012 09:16:54 +0000 Received: from localhost.localdomain (unknown [87.242.62.156]) by km31432.keymachine.de (Postfix) with ESMTPSA id 87FAE3900165; Sun, 15 Apr 2012 09:22:11 +0000 (UTC) Message-ID: <4F8A917E.4020305@cybertec.at> Date: Sun, 15 Apr 2012 11:14:38 +0200 From: Boszormenyi Zoltan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Peter Eisentraut CC: Robert Haas , Pavel Stehule , Hitoshi Harada , Tom Lane , pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: BUG #6572: The example of SPI_execute is bogus References: <25939.1333551641@sss.pgh.pa.us> <1334420159.9019.38.camel@vanquo.pezone.net> In-Reply-To: <1334420159.9019.38.camel@vanquo.pezone.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 87.118.86.135 (deferred) X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201204/94 X-Sequence-Number: 32845 2012-04-14 18:15 keltez=C3=A9ssel, Peter Eisentraut =C3=ADrta: > On l=C3=B6r, 2012-04-14 at 08:23 -0400, Robert Haas wrote: >> On Sat, Apr 14, 2012 at 3:27 AM, Pavel Stehule wrote: >>>> It has a lot of sense. Without it, it's very difficult to do logica= l >>>> replication on a table with no primary key. >>>> >>>> (Whether or not people should create such tables in the first place >>>> is, of course, beside the point.) >>> I am not against to functionality - I am against just to syntax DELET= E >>> FROM tab LIMIT x >>> >>> because is it ambiguous what means: DELETE FROM tab RETURNING * LIMIT= x >> What's ambiguous about that? > I suppose one could wonder whether the LIMIT applies to the deleting or > just the returning. Ambigous only in this order. LIMIT x RETURNING * wouldn't be. --=20 ---------------------------------- Zolt=C3=A1n B=C3=B6sz=C3=B6rm=C3=A9nyi Cybertec Sch=C3=B6nig& Sch=C3=B6nig GmbH Gr=C3=B6hrm=C3=BChlgasse 26 A-2700 Wiener Neustadt, Austria Web: http://www.postgresql-support.de http://www.postgresql.at/