Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Determinist...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 9338 of 9806
Post > Topic >>

Re: Deterministic locking in PostgreSQL

by tgl@[EMAIL PROTECTED] (Tom Lane) May 9, 2008 at 07:53 PM

Robert Hodges <robert.hodges@[EMAIL PROTECTED]
> writes:
> This question may have an obvious answer I have somehow missed, but to
what
> extent is locking order deterministic in PostgreSQL?  For example, if
> requests from multiple transactions arrive in some deterministic order
and
> acquire locks, can one assume that locks will be granted in the same
order
> if the requests are repeated at different times or on different servers?

Yeah, it should be deterministic given consistent arrival order.

> Lock determinism is an im****tant issue for replication algorithms that
> depend on database instances to behave as state machines.

However, the idea of depending on a replication algorithm that has race
conditions gives me the willies ... and that sure sounds like what you
are describing.  Do not trust your data to the assumption that arrival
order will be deterministic.

			regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 1 Posts in Topic:
Re: Deterministic locking in PostgreSQL
tgl@[EMAIL PROTECTED] (T  2008-05-09 19:53:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 1:55:03 CDT 2008.