Re: [SQL] fetching unique pins in a high-transaction environment...

2006-11-06 Thread Bobus
I think we've figured out a way to implement the equivalent of a READPAST hint in a function. The basic idea is to loop until we find the next available unlocked row, using the lock_not_available exception to determine if the record is locked or not. Our early testing seems to indicate that this

[SQL] fetching unique pins in a high-transaction environment...

2006-11-06 Thread Bobus
Hi, I posted this question to the "general" forum, but then discovered this one which I think is more appropriate. Apologies for the cross-post. We are in the process of porting an application from SQL Server to PostgresQL. We have a table which contains a bunch of prepaid PINs. What is the be