Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6129de0

Browse files
author
Thomas G. Lockhart
committed
Remove duplicate entry for R_PLAN (thanks Bruce).
Add entry for undocumented (?) KSQO.
1 parent 963ed0e commit 6129de0

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

doc/src/sgml/ref/set.sgml

+25-21
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ SET
2020
<REPLACEABLE CLASS="PARAMETER">
2121
</REPLACEABLE>
2222
SET <REPLACEABLE CLASS="PARAMETER">variable</REPLACEABLE> { TO | = } { '<REPLACEABLE CLASS="PARAMETER">value</REPLACEABLE>' | DEFAULT }
23-
2423
SET TIME ZONE { '<REPLACEABLE CLASS="PARAMETER">timezone</REPLACEABLE>' | LOCAL };
2524
</SYNOPSIS>
2625

@@ -52,7 +51,7 @@ New value of parameter.
5251
</variablelist>
5352

5453
<para>
55-
The possible variables and allowed values are:
54+
The possible variables and allowed values are:
5655

5756
<VARIABLELIST>
5857
<VARLISTENTRY>
@@ -197,16 +196,18 @@ set time zone to your local timezone
197196
</variablelist>
198197

199198
<para>
200-
If an invalid time zone is specified, the time zone
201-
becomes GMT (on most systems anyway).
199+
If an invalid time zone is specified, the time zone
200+
becomes GMT (on most systems anyway).
201+
202202
<para>
203-
A frontend which uses libpq may be initialized by setting the PGTZ
204-
environment variable.
203+
A frontend which uses libpq may be initialized by setting the PGTZ
204+
environment variable.
205+
205206
<para>
206-
The second syntax shown above, allows one to set the timezone
207-
with a syntax similar to SQL92 <command>SET TIME ZONE</command>.
208-
The LOCAL keyword is just an alternate form
209-
of DEFAULT for SQL92 compatibility.
207+
The second syntax shown above, allows one to set the timezone
208+
with a syntax similar to SQL92 <command>SET TIME ZONE</command>.
209+
The LOCAL keyword is just an alternate form
210+
of DEFAULT for SQL92 compatibility.
210211

211212
</varlistentry>
212213
</variablelist>
@@ -315,7 +316,7 @@ DEFAULT
315316
</term>
316317
<listitem>
317318
<para>
318-
Equivalent to specifying <command>SET GEQO=On</command>
319+
Equivalent to specifying <command>SET GEQO='on'</command>
319320
</varlistentry>
320321
</variablelist>
321322

@@ -361,7 +362,7 @@ DEFAULT
361362
</term>
362363
<listitem>
363364
<para>
364-
Equivalent to specifying <command>SET R_PLANS=Off</command>.
365+
Equivalent to specifying <command>SET R_PLANS='off'</command>.
365366
</variablelist>
366367

367368
<para>
@@ -375,11 +376,13 @@ Equivalent to specifying <command>SET R_PLANS=Off</command>.
375376

376377
<varlistentry>
377378
<term>
378-
R_PLANS
379+
KSQO
379380
</term>
380381
<listitem>
381382
<para>
382-
Determines whether right-hand plan evaluation is allowed:
383+
<firstterm>Key Set Query Optimizer</firstterm> forces the query optimizer
384+
to optimize repetative OR clauses such as generated by
385+
<productname>MicroSoft Access</productname>:
383386

384387
<variablelist>
385388
<varlistentry>
@@ -388,23 +391,23 @@ On
388391
</term>
389392
<listitem>
390393
<para>
391-
enables right-hand evaluation of plans.
394+
enables this optimization.
392395

393396
<varlistentry>
394397
<term>
395398
Off
396399
</term>
397400
<listitem>
398401
<para>
399-
disables right-hand evaluation of plans.
402+
disables this optimization.
400403

401404
<varlistentry>
402405
<term>
403406
DEFAULT
404407
</term>
405408
<listitem>
406409
<para>
407-
Equivalent to specifying <command>SET R_PLANS=Off</command>.
410+
Equivalent to specifying <command>SET KSQO='off'</command>.
408411
</variablelist>
409412

410413
<para>
@@ -430,7 +433,8 @@ Value
430433
</term>
431434
<listitem>
432435
<para>
433-
Maximum number of rows to return for a query. The default is unlimited.
436+
Maximum number of rows to return for a query. The default is to allow
437+
an unlimited number of rows.
434438
<varlistentry>
435439
<term>
436440
<replaceable class="parameter">#</replaceable>
@@ -445,12 +449,12 @@ DEFAULT
445449
</term>
446450
<listitem>
447451
<para>
448-
Sets the number of rows returned by a query to unlimited.
452+
Sets the maximum number of rows returned by a query to be unlimited.
449453
</varlistentry>
450454

451455
<para>
452-
By default, there is no limit to the number of rows
453-
returned by a query.
456+
By default, there is no limit to the number of rows
457+
returned by a query.
454458
</variablelist>
455459

456460
</VARLISTENTRY>

0 commit comments

Comments
 (0)