Stalled post to pgsql-bugs

From: "Ciprian Dorin Craciun" <ciprian(dot)craciun(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Stalled post to pgsql-bugs
Date: 2007-10-19 09:32:41
Message-ID: 8e04b5820710190232w7a2df84cw722ec4edcd85fc3c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

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(at)postgresql(dot)org <pgsql-bugs-owner(at)postgresql(dot)org>
Date: Sep 3, 2007 8:13 PM
Subject: Stalled post to pgsql-bugs
To: Ciprian Dorin Craciun <ciprian(dot)craciun(at)gmail(dot)com>

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" <ciprian(dot)craciun(at)gmail(dot)com>)
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(at)postgresql(dot)org

---------- Forwarded message ----------
From: "Ciprian Dorin Craciun" <ciprian(dot)craciun(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)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(dot)craciun(at)gmail(dot)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;

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2007-10-19 10:52:07 Re: Stalled post to pgsql-bugs
Previous Message Ciprian Dorin Craciun 2007-10-19 06:47:51 Fwd: Stalled post to pgsql-bugs

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2007-10-19 10:41:24 Re: Abbreviation list
Previous Message Stefan Schwarzer 2007-10-19 08:45:16 Re: Crosstab Problems