Re: how to insert multiple rows and get the ids back in a temp table (pgplsql)?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Bret Green <bret(dot)green(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to insert multiple rows and get the ids back in a temp table (pgplsql)?
Date: 2010-09-20 10:10:32
Message-ID: 20100920101032.GA25954@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Sep 19, 2010 at 05:34:54PM -0700, Bret Green wrote:
> Thanks
> Any solution without cursors perhaps?

write sql function as a wrapper around insert, and use it as a source
for 2nd insert.

depesz

--
Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/
jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2010-09-20 10:51:36 Data directory permissions.
Previous Message Adrien Kunysz 2010-09-20 08:57:06 Re: Getting FATAL: terminating connection due to administrator command