diff --git a/doc/src/sgml/ref/set.sgml b/doc/src/sgml/ref/set.sgml
index fd8eb8df2b..af71daf532 100644
--- a/doc/src/sgml/ref/set.sgml
+++ b/doc/src/sgml/ref/set.sgml
@@ -18,9 +18,8 @@
1998-09-24
-SET variable { TO | = } {
- 'value' | DEFAULT }
-SET TIME ZONE { 'timezone' | LOCAL | DEFAULT };
+SET variable { TO | = } { 'value' | DEFAULT }
+SET TIME ZONE { 'timezone' | LOCAL | DEFAULT }
SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
@@ -36,7 +35,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- variable
+variable
@@ -46,7 +45,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- value
+value
@@ -63,16 +62,16 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- CLIENT_ENCODING | NAMES
+CLIENT_ENCODING | NAMES
- Sets the multi-byte client encoding
+ Sets the multi-byte client encoding. Parameters are:
- value
+value
@@ -85,11 +84,11 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- DEFAULT
+DEFAULT
- Sets the multi-byte client encoding.
+ Sets the multi-byte client encoding to the default value.
@@ -104,14 +103,17 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- DateStyle
+DateStyle
+ Set the date/time representation style. Affects the output format,
+ and in some cases it can affect the interpretation of input.
+
- ISO
+ISO
@@ -121,7 +123,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- SQL
+SQL
@@ -131,7 +133,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- Postgres
+Postgres
@@ -141,7 +143,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- European
+European
@@ -151,7 +153,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- NonEuropean
+NonEuropean
@@ -161,7 +163,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- German
+German
@@ -171,7 +173,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- US
+US
@@ -181,7 +183,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- default
+default
@@ -193,14 +195,14 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- Date format initialization my be done by:
+ Date format initialization may be done by:
- Setting PGDATESTYLE environment variable.
+ Setting the PGDATESTYLE environment variable.
- Running postmaster using -oe parameter to set
- dates to the 'European' convention.
+ Running postmaster using the parameter to set
+ dates to the European convention.
Note that this affects only the some combinations of date styles; for example
the ISO style is not affected by this parameter.
@@ -226,7 +228,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- SERVER_ENCODING
+SERVER_ENCODING
@@ -235,22 +237,22 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- value
+value
- Sets the multi-byte server encoding.
+ Sets the multi-byte server encoding.
- DEFAULT
+DEFAULT
- Sets the multi-byte server encoding.
+ Sets the multi-byte server encoding.
@@ -264,7 +266,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- TIMEZONE
+TIMEZONE
@@ -278,7 +280,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- 'PST8PDT'
+'PST8PDT'
@@ -288,7 +290,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- 'Portugal'
+'Portugal'
@@ -298,7 +300,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- 'Europe/Rome'
+'Europe/Rome'
@@ -308,7 +310,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- DEFAULT
+DEFAULT
@@ -338,7 +340,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- TRANSACTION ISOLATION LEVEL
+TRANSACTION ISOLATION LEVEL
@@ -347,7 +349,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- READ COMMITTED
+READ COMMITTED
@@ -366,7 +368,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- SERIALIZABLE
+SERIALIZABLE
@@ -393,7 +395,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- COST_HEAP
+COST_HEAP
@@ -402,7 +404,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- float4
+float4
@@ -413,7 +415,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- DEFAULT
+DEFAULT
@@ -432,7 +434,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- COST_INDEX
+COST_INDEX
@@ -441,7 +443,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- float4
+float4
@@ -452,7 +454,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- DEFAULT
+DEFAULT
@@ -472,7 +474,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- GEQO
+GEQO
@@ -481,7 +483,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- ON
+ON
@@ -492,7 +494,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- ON=#
+ON=#
@@ -504,7 +506,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- OFF
+OFF
@@ -514,7 +516,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- DEFAULT
+DEFAULT
@@ -545,7 +547,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- KSQO
+KSQO
@@ -556,7 +558,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- ON
+ON
@@ -567,7 +569,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- OFF
+OFF
@@ -578,7 +580,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- DEFAULT
+DEFAULT
@@ -617,7 +619,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- SET VARIABLE
+SET VARIABLE
@@ -628,9 +630,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
- WARN: Bad value for
- variable
- (value)
+WARN: Bad value for variable (value)
@@ -694,43 +694,46 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
Usage
-
-
- --Set the style of date to ISO:
- --
- SET DATESTYLE TO 'ISO';
-
-
- --Enable GEQO for queries with 4 or more tables
- --
- SET GEQO ON=4;
-
-
- --Set GEQO to default:
- --
- SET GEQO = DEFAULT;
-
-
- --set the timezone for Berkeley, California:
- SET TIME ZONE 'PST8PDT';
+ Set the style of date to ISO:
+
+ SET DATESTYLE TO 'ISO';
+
+
+ Enable GEQO for queries with 4 or more tables:
+
+
+ SET GEQO ON=4;
+
+
+ Set GEQO to default:
+
+
+ SET GEQO = DEFAULT;
+
+
+ Set the timezone for Berkeley, California:
+
+
+ SET TIME ZONE 'PST8PDT';
SELECT CURRENT_TIMESTAMP AS today;
today
----------------------
1998-03-31 07:41:21-08
-
-
- --set the timezone for Italy:
+
+
+ Set the timezone for Italy:
+
+
SET TIME ZONE 'Europe/Rome';
-
SELECT CURRENT_TIMESTAMP AS today;
today
----------------------
1998-03-31 17:41:31+02
-
-
+
+