diff --git a/doc/src/sgml/ref/set.sgml b/doc/src/sgml/ref/set.sgml
index 87742007ef..8b84029471 100644
--- a/doc/src/sgml/ref/set.sgml
+++ b/doc/src/sgml/ref/set.sgml
@@ -20,7 +20,6 @@ SET
SET variable { TO | = } { 'value' | DEFAULT }
-
SET TIME ZONE { 'timezone' | LOCAL };
@@ -52,7 +51,7 @@ New value of parameter.
- The possible variables and allowed values are:
+The possible variables and allowed values are:
@@ -197,16 +196,18 @@ set time zone to your local timezone
- If an invalid time zone is specified, the time zone
- becomes GMT (on most systems anyway).
+If an invalid time zone is specified, the time zone
+becomes GMT (on most systems anyway).
+
- A frontend which uses libpq may be initialized by setting the PGTZ
- environment variable.
+A frontend which uses libpq may be initialized by setting the PGTZ
+environment variable.
+
- The second syntax shown above, allows one to set the timezone
- with a syntax similar to SQL92 SET TIME ZONE.
- The LOCAL keyword is just an alternate form
- of DEFAULT for SQL92 compatibility.
+The second syntax shown above, allows one to set the timezone
+with a syntax similar to SQL92 SET TIME ZONE.
+The LOCAL keyword is just an alternate form
+of DEFAULT for SQL92 compatibility.
@@ -315,7 +316,7 @@ DEFAULT
-Equivalent to specifying SET GEQO=On
+Equivalent to specifying SET GEQO='on'
@@ -361,7 +362,7 @@ DEFAULT
-Equivalent to specifying SET R_PLANS=Off.
+Equivalent to specifying SET R_PLANS='off'.
@@ -375,11 +376,13 @@ Equivalent to specifying SET R_PLANS=Off.
-R_PLANS
+KSQO
-Determines whether right-hand plan evaluation is allowed:
+Key Set Query Optimizer forces the query optimizer
+to optimize repetative OR clauses such as generated by
+MicroSoft Access:
@@ -388,7 +391,7 @@ On
-enables right-hand evaluation of plans.
+enables this optimization.
@@ -396,7 +399,7 @@ Off
-disables right-hand evaluation of plans.
+disables this optimization.
@@ -404,7 +407,7 @@ DEFAULT
-Equivalent to specifying SET R_PLANS=Off.
+Equivalent to specifying SET KSQO='off'.
@@ -430,7 +433,8 @@ Value
-Maximum number of rows to return for a query. The default is unlimited.
+Maximum number of rows to return for a query. The default is to allow
+an unlimited number of rows.
#
@@ -445,12 +449,12 @@ DEFAULT
-Sets the number of rows returned by a query to unlimited.
+Sets the maximum number of rows returned by a query to be unlimited.
- By default, there is no limit to the number of rows
- returned by a query.
+By default, there is no limit to the number of rows
+returned by a query.