pg_query & pg_last_oid

From: "Ben-Nes Michael" <miki(at)canaan(dot)co(dot)il>
To: "postgres" <pgsql-general(at)postgresql(dot)org>
Subject: pg_query & pg_last_oid
Date: 2002-08-16 08:44:13
Message-ID: 00b401c24501$19216ce0$aa0f5ac2@canaan.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All

In PHP

after sending a querry Im using pg_last_oid to get the oid.

Is a mix between two users that submit query simultaniusly accour ?

user A: insert into .......
user A: last oid 1
user B: insert into .......
user B: last oid 2

user A: pg_last_oid = 2
user B: pg_last_oid = 2

Can this happen ?
If so, what one can do to avoid it ?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christian Imbeault 2002-08-16 09:11:45 serial nextval() question
Previous Message mixo 2002-08-16 08:33:03 last entry