Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E93FF9FA1A0 for ; Fri, 19 Oct 2007 08:45:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 52249-01 for ; Fri, 19 Oct 2007 08:45:02 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.242]) by postgresql.org (Postfix) with ESMTP id 2A0369FA19E for ; Fri, 19 Oct 2007 08:45:01 -0300 (ADT) Received: by ag-out-0708.google.com with SMTP id 23so1065541agd for ; Fri, 19 Oct 2007 04:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=OlX2Q3qs/7xyVTdK4NJz0iwIVWI7bxoXqXrp8NjxB+c=; b=UBVE2t9nAV55qOoibfYVTmCAcw0Ion4s7n9TcHcehhzsD0+BlcVDmWlJBodB2SOTKT9qGCMlYXHzyei6vezS+wK/nibrSrgi9sCvBPfR7JT7cQOe5WsDdSYF4zVC1i5qB/ZRnPwH0lG/SGDDUH5rjy7Jp4PAEIgXurSkkfqBwCA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qA9hQzUQ9qnKygsGrNWLAc6zD5PlNBFxqnhn5c/lbuU0IZbdYBjiW3usXDsKFMDnf046VNLLStBcMPMEv+C+hzcdx2hIWj5lborqCx7EUKg2bHX+G1Hr+Y6+RhC3Bufifq8vZKLj/iWNNScxGrUBh828Vv/U3nP7+VKQPmn4ROg= Received: by 10.70.21.4 with SMTP id 4mr2809499wxu.1192794300201; Fri, 19 Oct 2007 04:45:00 -0700 (PDT) Received: by 10.70.116.2 with HTTP; Fri, 19 Oct 2007 04:45:00 -0700 (PDT) Message-ID: <8e04b5820710190445u234b42e7wa5e730a1c9e48b64@mail.gmail.com> Date: Fri, 19 Oct 2007 14:45:00 +0300 From: "Ciprian Dorin Craciun" To: "Pavel Stehule" Subject: Re: Stalled post to pgsql-bugs Cc: pgsql-general@postgresql.org In-Reply-To: <162867790710190352r10837704vdae712c90416983e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8e04b5820710182347p40f481a5uff10bbac7f7a45d3@mail.gmail.com> <8e04b5820710190232w7a2df84cw722ec4edcd85fc3c@mail.gmail.com> <162867790710190352r10837704vdae712c90416983e@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/969 X-Sequence-Number: 122261 Thanks! I thought that my bug was ignored... It would be nice to have RETURNING used in PL/SQL functions... Without named parameters I can live -- they are just syntactic sugar -- but RETURNING can not be worked around... Ciprian. On 10/19/07, Pavel Stehule wrote: > Hello > > it's feature :(. And it isn't supported in 8.3 too > > all info about unsupported features you can find in ToDo list > http://www.postgresql.org/docs/faqs.TODO.html > > # Allow SQL-language functions to return results from RETURNING queries > > http://archives.postgresql.org/pgsql-hackers/2006-10/msg00665.php > # Allow SQL-language functions to reference parameters by parameter name > > Currently SQL-language functions can only refer to dollar parameters, e.g. $1 > > Regards > Pavel Stehule > > 2007/10/19, Ciprian Dorin Craciun : > > Hello all! > > > > Almost two months ago I have posted a bug on the bug reporting > > form that is available on the web page... (I forward here the email I > > got in response.) It was related about the RETURNING feature available > > for INSERT, UPDATE and DELETE, and the fact that I can not use it as > > last statement is PL/SQL functions. > > > > But until now I saw no activity on this bug... How can I track it? > > Has some one looked at it? Is it already fixed? > > > > I've monitored the release notes of every release from 8.2.5 and > > saw nothing related to the issue. > > > > Could some one point me into the right direction? Or I could try > > to fix it my self if someone could tell me where to start... > > > > Thank you all, > > Ciprian. > > > > P.S.: I have also tried to send this same message directly to > > psql-bugs mailing list but obtained the same message that the report > > is stalled. > > > > > > ---------- Forwarded message ---------- > > From: pgsql-bugs-owner@postgresql.org > > Date: Sep 3, 2007 8:13 PM > > Subject: Stalled post to pgsql-bugs > > To: Ciprian Dorin Craciun > > > > > > Your message to pgsql-bugs has been delayed, and requires the approval > > of the moderators, for the following reason(s): > > > > The author ("Ciprian Dorin Craciun" ) > > is not a member of any of the restrict_post groups. > > > > If you do not wish the message to be posted, or have other concerns, > > please send a message to the list owners at the following address: > > pgsql-bugs-owner@postgresql.org > > > > > > ---------- Forwarded message ---------- > > From: "Ciprian Dorin Craciun" > > To: pgsql-bugs@postgresql.org > > Date: Mon, 3 Sep 2007 17:13:40 GMT > > Subject: BUG #3596: "insert ... returning *" not usable as last > > statement in a function... > > > > The following bug has been logged online: > > > > Bug reference: 3596 > > Logged by: Ciprian Dorin Craciun > > Email address: ciprian.craciun@gmail.com > > PostgreSQL version: 8.2.4 > > Operating system: Debian Etch (4.0) > > Description: "insert ... returning *" not usable as last statement in > > a function... > > Details: > > > > I think the best explanation is the example just above... > > > > The idea is that in 8.2 insert statement was modified by adding an returning > > option, that modifies insert to behave also as a select statement by > > returning all the rows inserted. But unfortunately this option can not be > > used inside functions that return something as a last statement... > > > > create table table1 ( field int ); > > > > create function function1 ( int ) returns table1 as $$ > > insert into table1 values ($1) returning *; > > $$ language sql; > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 4: Have you searched our list archives? > > > > http://archives.postgresql.org/