Hi.
How I can change the isolation level on the transaction?
http://www.postgresql.org/docs/9.1/stat ... n-iso.html
Thanks.
isolation level on the transaction
Re: isolation level on the transaction
Hello,
For the time being, you can control the transaction behavior using the TPgTransaction class in the following way:
IsolationLevel is described in the CRAccess module and can take the following values:
ilReadCommitted, ilSnapshot, ilRepeatableRead, ilReadUncommitted
For the time being, you can control the transaction behavior using the TPgTransaction class in the following way:
Code: Select all
uses ..., CRAccess;
var
PgConnection: TPgConnection;
PgTransaction: TPgTransaction;
begin
PgConnection := TPgConnection.Create(nil);
PgTransaction := TPgTransaction.Create(nil);
PgTransaction.DefaultConnection := PgConnection;
PgTransaction.IsolationLevel := ilRepeatableRead;
PgTransaction.StartTransaction;
ilReadCommitted, ilSnapshot, ilRepeatableRead, ilReadUncommitted
Re: isolation level on the transaction
Hi, thanks for your answer.
What I have to select for isolation serializable (ilSnapshot, ilRepeatableRead, ??)?
http://www.postgresql.org/docs/9.1/stat ... n-iso.html
Best Regards
What I have to select for isolation serializable (ilSnapshot, ilRepeatableRead, ??)?
http://www.postgresql.org/docs/9.1/stat ... n-iso.html
Best Regards
Re: isolation level on the transaction
Hello,
To use Serializable Isolation Level, you should set the PgTransaction.IsolationLevel property to ilSnapshot.
To use Serializable Isolation Level, you should set the PgTransaction.IsolationLevel property to ilSnapshot.
Code: Select all
ilReadCommitted = READ COMMITTED
ilSnapshot = SERIALIZABLE
ilRepeatableRead = REPEATABLE READ
ilReadUncommitted = READ UNCOMMITTED