Received: from server.beierfeld.kabeljournal.de (pD95089D4.dip.t-dialin.net [217.80.137.212]) by postgresql.org (Postfix) with SMTP id 3A01047510B for ; Tue, 2 Apr 2002 00:48:36 -0500 (EST) Received: (qmail 30165 invoked from network); 2 Apr 2002 05:48:47 -0000 Received: from station158.beierfeld.kabeljournal.de (HELO km3.de) (192.168.128.158) by server.beierfeld.kabeljournal.de with SMTP; 2 Apr 2002 05:48:47 -0000 Message-ID: <3CA938F7.F8EB74E5@km3.de> Date: Tue, 02 Apr 2002 06:52:07 +0200 From: Andre Schubert X-Mailer: Mozilla 4.77 [de] (X11; U; Linux 2.2.19-6.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: Tom Lane Cc: "pgsql-admin@postgresql.org" Subject: Re: Last_Inserted Value References: <3CA2CF1F.3451C5B4@km3.de> <25557.1017326435@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200204/9 X-Sequence-Number: 3898 Tom Lane schrieb: > > Andre Schubert writes: > > All three tables use the same sequence to increment their id. > > I want to know if it is possible to find the id of the inserted value of > > foo. > > Try "currval". I think i cant use it. because all three tables use the same sequence, and currval gives me the id from the insert of the last table, not of the first one.