Re: Serializable snapshot isolation error logging - Mailing list pgsql-hackers

From Dan S
Subject Re: Serializable snapshot isolation error logging
Date
Msg-id AANLkTinA2r1g4tSHyEo1FMF+VduQwk-m63VB9T2WmYey@mail.gmail.com
Whole thread Raw
In response to Re: Serializable snapshot isolation error logging  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: Serializable snapshot isolation error logging
List pgsql-hackers
<br />A starvation scenario is what worries me:<br /><br />Lets say we have a slow complex transaction with many tables
involved.<br/>Concurrently smaller transactions begins and commits .<br /><br />Wouldn't it be possible for a
starvationscenario where the slower transaction will<br /> never run to completion but give a serialization failure
overand over again on retry ?<br /><br />If I know at what sql-statement the serialization failure occurs can i then
concludethat <br />some of the tables in that exact query were involved in the conflict ?<br /><br />If the
serializationfailure occurs at commit time what can I conclude then ?<br />They can  occur at commit time right ?<br
/><br/>What is the likelyhood that there exists an update pattern that always give the failure in the slow transaction
?<br/><br />How would one break such a recurring pattern ?<br />You could maybe try to lock each table used in the slow
transactionbut that would be prohibitively costly<br />for concurrency.<br />But what else if there is no way of
knowingwhat the slow transaction conflicts against.<br /><br />As things with concurrency involved have a tendency to
popup in production and not in test I think it is important to<br />start thinking about them as soon as possible.<br
/><br/>Best Regards<br />Dan S<br /><br /> 

pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: moving development branch activity to new git repo
Next
From: Elvis Pranskevichus
Date:
Subject: Re: moving development branch activity to new git repo