77 * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
88 * Portions Copyright (c) 1994, Regents of the University of California
99 *
10- * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.71 2004/08/29 05:06:55 momjian Exp $
10+ * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.72 2004/09/05 23:01:26 tgl Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -32,10 +32,10 @@ extern intDefaultXactIsoLevel;
3232extern int XactIsoLevel ;
3333
3434/*
35- * We only implement twodistinct levels, so this is a convenience to
36- *check which level we're really using internally .
35+ * We only implement twoisolation levels internally. This macro should
36+ *be used to check which one is selected .
3737 */
38- #define IsXactIsoLevelSerializable (( XactIsoLevel== XACT_REPEATABLE_READ || XactIsoLevel == XACT_SERIALIZABLE) )
38+ #define IsXactIsoLevelSerializable (XactIsoLevel>= XACT_REPEATABLE_READ)
3939
4040/* Xact read-only state */
4141extern bool DefaultXactReadOnly ;