1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.196 2008/11/20 20:45:29 momjian Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.197 2008/11/21 19:42:12 mha Exp $ -->
2
2
3
3
<chapter Id="runtime-config">
4
4
<title>Server Configuration</title>
20
20
21
21
<para>
22
22
All parameter names are case-insensitive. Every parameter takes a
23
- value of one offour types: Boolean, integer, floating point,
24
- orstring . Boolean values can be written as <literal>ON</literal>,
23
+ value of one offive types: Boolean, integer, floating point,
24
+ string orenum . Boolean values can be written as <literal>ON</literal>,
25
25
<literal>OFF</literal>, <literal>TRUE</literal>,
26
26
<literal>FALSE</literal>, <literal>YES</literal>,
27
27
<literal>NO</literal>, <literal>1</literal>, <literal>0</literal>
42
42
for memory units is 1024, not 1000.
43
43
</para>
44
44
45
+ <para>
46
+ Settings of type 'enum' are specified the same way at string settings,
47
+ but are restricted to a limited range of values. To find available
48
+ values, look at <literal>pg_settings.enumvals</>. Enum settings are
49
+ case insensitive.
50
+ </para>
51
+
45
52
<para>
46
53
One way to set these parameters is to edit the file
47
54
<filename>postgresql.conf</><indexterm><primary>postgresql.conf</></>,
@@ -1329,7 +1336,7 @@ SET ENABLE_SEQSCAN TO OFF;
1329
1336
</varlistentry>
1330
1337
1331
1338
<varlistentry id="guc-wal-sync-method" xreflabel="wal_sync_method">
1332
- <term><varname>wal_sync_method</varname> (<type>string </type>)</term>
1339
+ <term><varname>wal_sync_method</varname> (<type>enum </type>)</term>
1333
1340
<indexterm>
1334
1341
<primary><varname>wal_sync_method</> configuration parameter</primary>
1335
1342
</indexterm>
@@ -2464,7 +2471,7 @@ local0.* /var/log/postgresql
2464
2471
</varlistentry>
2465
2472
2466
2473
<varlistentry id="guc-syslog-facility" xreflabel="syslog_facility">
2467
- <term><varname>syslog_facility</varname> (<type>string </type>)</term>
2474
+ <term><varname>syslog_facility</varname> (<type>enum </type>)</term>
2468
2475
<indexterm>
2469
2476
<primary><varname>syslog_facility</> configuration parameter</primary>
2470
2477
</indexterm>
@@ -2511,7 +2518,7 @@ local0.* /var/log/postgresql
2511
2518
<variablelist>
2512
2519
2513
2520
<varlistentry id="guc-client-min-messages" xreflabel="client_min_messages">
2514
- <term><varname>client_min_messages</varname> (<type>string </type>)</term>
2521
+ <term><varname>client_min_messages</varname> (<type>enum </type>)</term>
2515
2522
<indexterm>
2516
2523
<primary><varname>client_min_messages</> configuration parameter</primary>
2517
2524
</indexterm>
@@ -2532,7 +2539,7 @@ local0.* /var/log/postgresql
2532
2539
</varlistentry>
2533
2540
2534
2541
<varlistentry id="guc-log-min-messages" xreflabel="log_min_messages">
2535
- <term><varname>log_min_messages</varname> (<type>string </type>)</term>
2542
+ <term><varname>log_min_messages</varname> (<type>enum </type>)</term>
2536
2543
<indexterm>
2537
2544
<primary><varname>log_min_messages</> configuration parameter</primary>
2538
2545
</indexterm>
@@ -2554,7 +2561,7 @@ local0.* /var/log/postgresql
2554
2561
</varlistentry>
2555
2562
2556
2563
<varlistentry id="guc-log-error-verbosity" xreflabel="log_error_verbosity">
2557
- <term><varname>log_error_verbosity</varname> (<type>string </type>)</term>
2564
+ <term><varname>log_error_verbosity</varname> (<type>enum </type>)</term>
2558
2565
<indexterm>
2559
2566
<primary><varname>log_error_verbosity</> configuration parameter</primary>
2560
2567
</indexterm>
@@ -2570,7 +2577,7 @@ local0.* /var/log/postgresql
2570
2577
</varlistentry>
2571
2578
2572
2579
<varlistentry id="guc-log-min-error-statement" xreflabel="log_min_error_statement">
2573
- <term><varname>log_min_error_statement</varname> (<type>string </type>)</term>
2580
+ <term><varname>log_min_error_statement</varname> (<type>enum </type>)</term>
2574
2581
<indexterm>
2575
2582
<primary><varname>log_min_error_statement</> configuration parameter</primary>
2576
2583
</indexterm>
@@ -3056,7 +3063,7 @@ local0.* /var/log/postgresql
3056
3063
</varlistentry>
3057
3064
3058
3065
<varlistentry id="guc-log-statement" xreflabel="log_statement">
3059
- <term><varname>log_statement</varname> (<type>string </type>)</term>
3066
+ <term><varname>log_statement</varname> (<type>enum </type>)</term>
3060
3067
<indexterm>
3061
3068
<primary><varname>log_statement</> configuration parameter</primary>
3062
3069
</indexterm>
@@ -3314,7 +3321,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
3314
3321
</varlistentry>
3315
3322
3316
3323
<varlistentry id="guc-track-functions" xreflabel="track_functions">
3317
- <term><varname>track_functions</varname> (<type>string </type>)</term>
3324
+ <term><varname>track_functions</varname> (<type>enum </type>)</term>
3318
3325
<indexterm>
3319
3326
<primary><varname>track_functions</> configuration parameter</primary>
3320
3327
</indexterm>
@@ -3828,7 +3835,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
3828
3835
<indexterm>
3829
3836
<primary><varname>default_transaction_isolation</> configuration parameter</primary>
3830
3837
</indexterm>
3831
- <term><varname>default_transaction_isolation</varname> (<type>string </type>)</term>
3838
+ <term><varname>default_transaction_isolation</varname> (<type>enum </type>)</term>
3832
3839
<listitem>
3833
3840
<para>
3834
3841
Each SQL transaction has an isolation level, which can be
@@ -3871,7 +3878,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
3871
3878
</varlistentry>
3872
3879
3873
3880
<varlistentry id="guc-session-replication-role" xreflabel="session_replication_role">
3874
- <term><varname>session_replication_role</varname> (<type>string </type>)</term>
3881
+ <term><varname>session_replication_role</varname> (<type>enum </type>)</term>
3875
3882
<indexterm>
3876
3883
<primary><varname>session_replication_role</> configuration parameter</primary>
3877
3884
</indexterm>
@@ -3933,7 +3940,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
3933
3940
</varlistentry>
3934
3941
3935
3942
<varlistentry id="guc-xmlbinary" xreflabel="xmlbinary">
3936
- <term><varname>xmlbinary</varname> (<type>string </type>)</term>
3943
+ <term><varname>xmlbinary</varname> (<type>enum </type>)</term>
3937
3944
<indexterm>
3938
3945
<primary><varname>xmlbinary</> configuration parameter</primary>
3939
3946
</indexterm>
@@ -3960,7 +3967,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
3960
3967
</varlistentry>
3961
3968
3962
3969
<varlistentry id="guc-xmloption" xreflabel="xmloption">
3963
- <term><varname>xmloption</varname> (<type>string </type>)</term>
3970
+ <term><varname>xmloption</varname> (<type>enum </type>)</term>
3964
3971
<indexterm>
3965
3972
<primary><varname>xmloption</> configuration parameter</primary>
3966
3973
</indexterm>
@@ -4026,7 +4033,7 @@ SET XML OPTION { DOCUMENT | CONTENT };
4026
4033
</varlistentry>
4027
4034
4028
4035
<varlistentry id="guc-intervalstyle" xreflabel="IntervalStyle">
4029
- <term><varname>IntervalStyle</varname> (<type>string </type>)</term>
4036
+ <term><varname>IntervalStyle</varname> (<type>enum </type>)</term>
4030
4037
<indexterm>
4031
4038
<primary><varname>IntervalStyle</> configuration parameter</primary>
4032
4039
</indexterm>
@@ -4514,7 +4521,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
4514
4521
</varlistentry>
4515
4522
4516
4523
<varlistentry id="guc-backslash-quote" xreflabel="backslash_quote">
4517
- <term><varname>backslash_quote</varname> (<type>string </type>)</term>
4524
+ <term><varname>backslash_quote</varname> (<type>enum </type>)</term>
4518
4525
<indexterm><primary>strings</><secondary>backslash quotes</></>
4519
4526
<indexterm>
4520
4527
<primary><varname>backslash_quote</> configuration parameter</primary>
@@ -4602,7 +4609,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
4602
4609
</varlistentry>
4603
4610
4604
4611
<varlistentry id="guc-regex-flavor" xreflabel="regex_flavor">
4605
- <term><varname>regex_flavor</varname> (<type>string </type>)</term>
4612
+ <term><varname>regex_flavor</varname> (<type>enum </type>)</term>
4606
4613
<indexterm><primary>regular expressions</></>
4607
4614
<indexterm>
4608
4615
<primary><varname>regex_flavor</> configuration parameter</primary>