Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 5ECEC13F0F80 for ; Sat, 14 Apr 2012 13:16:18 -0300 (ADT) Received: from mailout-de.gmx.net ([213.165.64.23]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SJ5e2-0003rO-Qp for pgsql-bugs@postgresql.org; Sat, 14 Apr 2012 16:16:17 +0000 Received: (qmail invoked by alias); 14 Apr 2012 16:16:01 -0000 Received: from a88-115-218-87.elisa-laajakaista.fi (EHLO [10.0.0.108]) [88.115.218.87] by mail.gmx.net (mp001) with SMTP; 14 Apr 2012 18:16:01 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX18WZ313VPYW7z01a3OALD4eWH7ScXNEKcm/9wZXWS sE13+KKkAEN83R Message-ID: <1334420159.9019.38.camel@vanquo.pezone.net> Subject: Re: BUG #6572: The example of SPI_execute is bogus From: Peter Eisentraut To: Robert Haas Cc: Pavel Stehule , Hitoshi Harada , Tom Lane , pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org Date: Sat, 14 Apr 2012 19:15:59 +0300 In-Reply-To: References: <25939.1333551641@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/91 X-Sequence-Number: 32842 On lör, 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 logical > >> 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 DELETE > > 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.