Skip to content

Commit 5a7547d

Browse files
committed
Add description for SET TRANSACTION.
1 parent 74e7b58 commit 5a7547d

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

doc/src/sgml/ref/set.sgml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,11 @@ SET TIME ZONE { '<REPLACEABLE CLASS="PARAMETER">timezone</REPLACEABLE>' | LOCAL
545545
<para>
546546
Sets the isolation level for the current transaction to
547547
'SERIALIZABLE' or 'READ COMMITTED'.
548+
SERIALIZABLE means that the current transaction will place a
549+
lock on every row read, so later reads in that transaction
550+
see the rows unmodified by other transactions.
551+
READ COMMITTED means that the current transaction reads only
552+
committed rows. READ COMMITTED is the default.
548553
</para>
549554
</listitem>
550555
</varlistentry>
@@ -557,7 +562,7 @@ SET TIME ZONE { '<REPLACEABLE CLASS="PARAMETER">timezone</REPLACEABLE>' | LOCAL
557562
<listitem>
558563
<para>
559564
Sets the isolation level for the current transaction to
560-
'SERIALIZABLE' or 'READ COMMITTED'.
565+
'READ COMMITTED'.
561566
</para>
562567
</listitem>
563568
</varlistentry>

src/man/set.l

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/set.l,v 1.20 1999/06/03 20:44:28 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/set.l,v 1.21 1999/06/04 03:44:42 momjian Exp $
44
.TH SET SQL 05/14/97 PostgreSQL PostgreSQL
55
.SH NAME
66
set - set run-time parameters for session
@@ -86,6 +86,14 @@ sets the current transaction's isolation level to
8686
.IR SERIALIZABLE
8787
or
8888
.IR READ COMMITTED .
89+
.IR SERIALIZABLE
90+
means that the current transaction will place a lock on every row read,
91+
so later reads in that transaction see the rows unmodified by
92+
other transactions.
93+
.IR READ COMMITTED
94+
means that the current transaction reads only committed rows.
95+
.IR READ COMMITTED
96+
is the default.
8997
.PP
9098
.IR CLIENT_ENCODING|NAMES
9199
sets the character set encoding of the client. Only available if multi-byte

0 commit comments

Comments
 (0)