How efficient is select currval?

From: Chris Velevitch <chris(dot)velevitch(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How efficient is select currval?
Date: 2005-12-09 00:19:01
Message-ID: b0a3bf780512081619o1460b6c1ndb7b64835d18557d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If I insert a record into a table with a serial primary key, does
select currval fetch it from the database or does it get it from
within memory?

If it fetches it from the database, should I use a Serializable
transaction or just a read committed transaction?

Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au

Responses

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2005-12-09 01:28:51 copy with where query?
Previous Message Jeffrey Melloy 2005-12-08 23:23:20 Re: find last day of month