Re: Transaction isolation level for plpgsql - Mailing list pgsql-sql

From Poul L. Christiansen
Subject Re: Transaction isolation level for plpgsql
Date
Msg-id 39D5C9C8.9121894E@cs.auc.dk
Whole thread Raw
In response to Transaction isolation level for plpgsql  (Keith Wong <keith@e-magine.com.au>)
List pgsql-sql
Use the command "\h set" and you'll see the parameters.

test=# \h set
Command:     SET
Description: Set run-time parameters for session
Syntax:
SET variable { TO | = } { value | 'value' | DEFAULT }
SET CONSTRAINTS {ALL | constraintlist} mode
SET TIME ZONE { 'timezone' | LOCAL | DEFAULT }
SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZABLE }

test=# show transaction isolation level;
NOTICE:  TRANSACTION ISOLATION LEVEL is READ COMMITTED
SHOW VARIABLE
test=#

HTH,
Poul L. Christiansen


Keith Wong wrote:
> 
> Hi all,
> 
> Does anybody know the transaction isolation level default when a plpgsql
> stored procedure is called?
> Is it possible to set it? Or is this controlled by SPI?
> 
> Cheers,
> Keith.


pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: More efficient DELETE ... ?
Next
From: Peter Eisentraut
Date:
Subject: Re: Transaction isolation level for plpgsql