Re: [SQL] Referential integrity (foreign keys) across multiple tables

2006-07-23 Thread Bruno Wolff III
On Sat, Jul 22, 2006 at 14:32:57 +0100, Richard Jones <[EMAIL PROTECTED]> wrote: > > Now I want to add a column to page_contents, say called link_name, > which is going to reference the pages.url column for the particular > host that this page belongs to. What are you trying to accomplish by th

Re: [SQL] Rows with exclusive lock

2006-07-23 Thread Alvaro Herrera
Martin Marques escribió: > On Sat, 22 Jul 2006, Alvaro Herrera wrote: > > >Martin Marques escribió: > >>Is it posible to get an exclusive (read/write) lock on certain rows? I > >>don't want to block the whole table, only certain rows, but I want it to > >>be a read/write lock. > > > >That's what S

Re: [SQL] Rows with exclusive lock

2006-07-23 Thread Florian Weimer
* Martin Marques: >> That's what SELECT FOR UPDATE does. > > Hi Alvaro, > > After the SELECT FOR UPDATE other transactions can still see the > locked rows. I want a read/write lock, so no one can access does rows. You should probably run the other transactions at SERIALIZABLE level. I suppose thi