[GENERAL] race conditions, intersect in subqueries

2000-09-08 Thread Cristóvão Dalla Costa
I'm working with an application I wrote which does something along these lines: SELECT ID FROM ITEM WHERE URL='X' FOR UPDATE IF (ROW RETURNED) { $ID = ITEM.ID } ELSE { SELECT nextval ('item_id_seq') $ID = nextval INSERT INTO ITEM } DO OTHER STUFF WITH $ID So, I check if an it

Re: [GENERAL] race conditions, intersect in subqueries

2000-09-08 Thread Stephan Szabo
On Fri, 8 Sep 2000, [iso-8859-1] Cristóvão Dalla Costa wrote: > I'm working with an application I wrote which does something along these > lines: > > SELECT ID FROM ITEM WHERE URL='X' FOR UPDATE > IF (ROW RETURNED) { > $ID = ITEM.ID > } ELSE { > SELECT nextval ('item_id_seq') > $ID =

Re: [GENERAL] Column name case conversion

2000-09-08 Thread Stephan Szabo
Sorry I didn't respond sooner -- lost the thread. :( Yeah, I can see where you're seeing this now. Not so much in the queries as in the code that needs to access the results. Your suggestion would work (theoretically the server could do something similar in reverse (store a real name and low

[GENERAL] port from MSSQLServer to PostgreSQL

2000-09-08 Thread Rommel B. Abaya
hi, i used to have an MSSQLServer database. I would like to ask how can i port all the data from MSSQLServer to PostgreSQL. TIA