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 General > How is statemen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 15350 of 17602
Post > Topic >>

How is statement level read consistency implemented?

by spam_eater@[EMAIL PROTECTED] (Thomas Kellerer) Apr 22, 2008 at 12:41 PM

Hi,

in my office we were discussing the various ways statement level read
consistency is implemented in different databases, namely Oracle and
Postgres.

I am interested in the technical details on how PG determines that a block
needs to be read from from "some other place than the data block" because
another transaction has updated the data block.

I'm referring to the scenario that Tom Kyte describes here:
www.oracle.com/technology/oramag/oracle/05-nov/o65asktom.html
and how PG would detect that row 342,023 has been modified by a different
transaction (and thus reads the correct value, unlike "the other
database")

Oracle assigns a SCN (system change number) to each transaction, each
block contains the SCN for which it is valid, any number higher than the
current SCN indicates that the block has to be taken from the rollback
segment.

How is this "test" implemented in Postgres? 
Does it have a similar concept (SCN) or does WAL imply a completely
different way?


Thanks in advance
Thomas



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




 10 Posts in Topic:
How is statement level read consistency implemented?
spam_eater@[EMAIL PROTECT  2008-04-22 12:41:08 
Re: How is statement level read consistency implemented?
pavan.deolasee@[EMAIL PRO  2008-04-22 16:27:17 
Re: How is statement level read consistency implemented?
spam_eater@[EMAIL PROTECT  2008-04-22 13:11:01 
Re: How is statement level read consistency implemented?
Jon.Roberts@[EMAIL PROTEC  2008-04-22 07:56:34 
Re: How is statement level read consistency implemented?
spam_eater@[EMAIL PROTECT  2008-04-22 15:06:54 
Re: How is statement level read consistency implemented?
alvherre@[EMAIL PROTECTED  2008-04-22 09:10:14 
Re: How is statement level read consistency implemented?
Jon.Roberts@[EMAIL PROTEC  2008-04-22 08:20:18 
Re: How is statement level read consistency implemented?
alvherre@[EMAIL PROTECTED  2008-04-22 09:35:29 
Re: How is statement level read consistency implemented?
erik@[EMAIL PROTECTED] (  2008-04-22 09:21:51 
Re: How is statement level read consistency implemented?
kleptog@[EMAIL PROTECTED]  2008-04-22 13:07:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Dec 1 19:15:57 CST 2008.