Re: JDBC Transactions - Mailing list pgsql-general

From Tom Lane
Subject Re: JDBC Transactions
Date
Msg-id 7258.1288652025@sss.pgh.pa.us
Whole thread Raw
In response to Re: JDBC Transactions  (Andy Colson <andy@squeakycode.net>)
List pgsql-general
Andy Colson <andy@squeakycode.net> writes:
> now now we have a membership record (100), but no customer record.

I haven't really been following this thread, but: isn't the answer
to that to establish a foreign-key constraint?  If there's an FK
then the database will provide sufficient row locking to prevent
you from deleting a row that someone else is in the midst of creating
a reference to.

            regards, tom lane

pgsql-general by date:

Previous
From: Jonathan Tripathy
Date:
Subject: Re: Replication
Next
From: Tom Lane
Date:
Subject: Re: can select contents of view but not view itself, despite indirect membership