Re: An example needed for Serializable conflict...

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-general(at)postgresql(dot)org
Cc: durumdara <durumdara(at)gmail(dot)com>
Subject: Re: An example needed for Serializable conflict...
Date: 2009-07-07 10:43:58
Message-ID: 200907071243.58671.andres@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi durumdara,

On Tuesday 07 July 2009 12:10:52 durumdara wrote:
> Another question if I use only "SELECTS" can I get some Serialization
> Error?
No.

> For example:
> I need a report tool that can show the actual state of the business.
> Because of I use value-dependent logic, I MUST use consistent state to
> preserve the equality of many values (sums, counts, etc.).
> So some (Read Committer) threads are update/delete/insert (sum modify)
> rows, but this report tool only READ the tables, and only works for temp
> tables.
> Can I get some S. error from this transaction?
> Or can I get some error from modifier threads if this (serializer
> report) thread actually read the rows that they are want to modify?
You can get errors between the writers but not between a writer and a reader.

It probably would be a good idea to read the documentation about mvcc (
http://www.postgresql.org/docs/current/static/mvcc.html) to understand the
possibilities/constraints better.

Andres

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Golub 2009-07-07 11:00:10 Re: Sugestion a db modele like mysql workbrench
Previous Message durumdara 2009-07-07 10:10:52 Re: An example needed for Serializable conflict...