pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: stig erikson <stigerikson_nospam_@yahoo.se>
To: pgsql-performance@postgresql.org
Subject: Re: What is the postgres sql command for last_user_id ???
Date: Wed, 02 Mar 2005 07:43:44 +0100
Message-ID: <d03neq$1egc$1@news.hub.org> (raw)
In-Reply-To: <1109691962.42248e3a3c898@webmail.moph.go.th>
References: <1109691962.42248e3a3c898@webmail.moph.go.th>

amrit@health2.moph.go.th wrote:
> I would like to know whether there is any command which the server will give the
> record ID back to the client when client puts the data and the server generates
> an autoincrement ID for that record.
> For example if many clients try to put the money data to the server and each
> record from each client has its own record ID by autoincrement process of the
> server [x+1] and i don't need to lock the record since it will bring the system
> to slow down. That client wil then want to know which ID that server gives to
> that record in order to select that record to print the reciept [bill].
> I know that in mysql there is a command "last_record_id" which acts the same as
> I mention above. Does anybody know that , please give me the detail?
> 
> Amrit,Thailand
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
> 

http://www.postgresql.org/docs/8.0/static/functions-sequence.html



view thread (3+ messages)  latest in thread

Message-ID: <d03neq$1egc$1@news.hub.org>
Permalink:  ../d03neq$1egc$1@news.hub.org/
Also on:    postgresql.org/message-id/d03neq$1egc$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: stigerikson_nospam_@yahoo.se
  Subject: Re: What is the postgres sql command for last_user_id ???
  In-Reply-To: <d03neq$1egc$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox