Modelling Oracle Sequences - Mailing list pgsql-general

From Julian North
Subject Modelling Oracle Sequences
Date
Msg-id A9F75F9AB514D611A69D0002A5AD9BED116CB2DE@lmnukex05.lastminute.com
Whole thread Raw
Responses Re: Modelling Oracle Sequences  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Re: Modelling Oracle Sequences  (Shridhar Daithankar <shridhar_daithankar@myrealbox.com>)
List pgsql-general
Hi,

I am in the process of porting a number of large MSSQL databases to
Postgres.

The current id generation model in SQL server is an oracle style sequence
generator i wrote using a pretty simple stored proc and table structure.

I now need to do the same thnig in postgres.

In MSSQL I was able to open an UPDATE cursor, which places a lock on the row
in the sequence table. I then update, release and return.

Has anyone done something similar or have any pointers on how to do this
safely, securely without an update cursor?

Any infor appreciated.

Cheers,



Julian.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

pgsql-general by date:

Previous
From: Unihost Web Hosting
Date:
Subject: Re: PGSQL on shared hosting
Next
From: "Durai"
Date:
Subject: Concurrent testing PostgreSQL Vs MySQL