Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7D7409FC39A for ; Fri, 19 Oct 2007 03:47:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 64500-06 for ; Fri, 19 Oct 2007 03:47:52 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by postgresql.org (Postfix) with ESMTP id AAB549FB565 for ; Fri, 19 Oct 2007 03:47:52 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id r21so362753wxc for ; Thu, 18 Oct 2007 23:47:51 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=QteuvHmedkT8boKtDQ5AN7uHTgOLVOkZu+0Je9TmMBw=; b=a66amheeJo5cLy2ePJwDp0R9b4y6FRkm7JrFkFaTKW/jKlC+j+jdQzRaLwdfTdDtD8iYmf9KFyMK7cZaQT2ObfpkUESPQqNO5SBDSK77YNDBk26LB6VFHxGYKa3f/TcGC6v9zcdW0Akd7pfrLXkDZpUTKnADTChG1DEwGWkjLek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GlpOluCloiqzVHr+XX0NT+PvYTRLpxMk1ma40wBeskugUUvGAiaZxd/jozwpk+Arn2zURnsYixyDc0e7l3n2DvYQavmhD5Rw61vmu9MWBoaaKQQY40XXrLEomY9t3GcSr5owzcgZikYc6ggZvVKnTp6Gzcwn6+9FKitJzzyB9Jk= Received: by 10.70.115.17 with SMTP id n17mr2437073wxc.1192776471387; Thu, 18 Oct 2007 23:47:51 -0700 (PDT) Received: by 10.70.116.2 with HTTP; Thu, 18 Oct 2007 23:47:51 -0700 (PDT) Message-ID: <8e04b5820710182347p40f481a5uff10bbac7f7a45d3@mail.gmail.com> Date: Fri, 19 Oct 2007 09:47:51 +0300 From: "Ciprian Dorin Craciun" To: pgsql-bugs@postgresql.org Subject: Fwd: Stalled post to pgsql-bugs In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/142 X-Sequence-Number: 18540 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. ---------- 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;