From: Horst Herb <hherb@malleenet.net.au>
To: omid omoomi <oomoomi@hotmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Re: [SQL] getting the oid for a new tuple in a BEFORE trigger
Date: Thu, 30 Aug 2001 13:40:49 +1000
Message-ID: <01083013404901.26591@munin.gnumed.dhs.org> (raw)
In-Reply-To: <F180zhad2VqKwRPQIWD0000059a@hotmail.com>
References: <F180zhad2VqKwRPQIWD0000059a@hotmail.com>
On Wednesday 29 August 2001 20:05, you wrote:
> hi,
> Idon't know the best way but how about a quick insert in a temp table and
> adding 1 to the inserted oid column each time the trigger will run.!
> regards
As you don't know how many users access the server concurrently and in which
order they will be served you will probably noty get what you want unless you
work on a single user single client-server connection all the time.
Horst
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-sql@postgresql.org
Cc: hherb@malleenet.net.au, oomoomi@hotmail.com, pgsql-hackers@postgresql.org
Subject: Re: Re: [SQL] getting the oid for a new tuple in a BEFORE trigger
In-Reply-To: <01083013404901.26591@munin.gnumed.dhs.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