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

Commit 9b7ba20

Browse files
committed
Add new pg_options.sample file.
1 parent bb7e5dc commit 9b7ba20

File tree

2 files changed

+254
-2
lines changed

2 files changed

+254
-2
lines changed

src/backend/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#
3535
#
3636
# IDENTIFICATION
37-
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.45 2000/03/08 22:00:19 tgl Exp $
37+
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.46 2000/04/08 19:38:00 momjian Exp $
3838
#
3939
#-------------------------------------------------------------------------
4040

@@ -188,7 +188,8 @@ endif
188188
install-templates: $(TEMPLATEDIR) \
189189
global1.bki.source local1_template1.bki.source \
190190
global1.description local1_template1.description \
191-
libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
191+
libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample \
192+
pg_options.sample
192193
$(INSTALL) $(INSTLOPTS) global1.bki.source \
193194
$(TEMPLATEDIR)/global1.bki.source
194195
$(INSTALL) $(INSTLOPTS) global1.description \
@@ -201,6 +202,8 @@ install-templates: $(TEMPLATEDIR) \
201202
$(TEMPLATEDIR)/pg_hba.conf.sample
202203
$(INSTALL) $(INSTLOPTS) optimizer/geqo/pg_geqo.sample \
203204
$(TEMPLATEDIR)/pg_geqo.sample
205+
$(INSTALL) $(INSTLOPTS) pg_options.sample \
206+
$(TEMPLATEDIR)/pg_options.sample
204207

205208
install-headers: fmgr.h $(SRCDIR)/include/config.h
206209
-@if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi

src/backend/pg_options.sample

Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
# pg_options file
2+
3+
# Documented for Debian release 7.0-0.beta4-1
4+
# Copyright (c) Oliver Elphick <olly@lfix.co.uk>
5+
# Licence: May be used without any payment or restriction, except that
6+
# the copyright and licence must be preserved.
7+
8+
# pg_options controls certain options and tracing features of the
9+
# PostgreSQL backend. It is read by postmaster and postgres before
10+
# command line arguments are examined, so command line arguments
11+
# will override any settings here.
12+
13+
# This file should be located at $PGDATA/pg_options. In Debian, this is
14+
# a symbolic link to /etc/postgresql/pg_options.
15+
16+
# The capitalised words refer to the internal #defines in the source code
17+
# which use these options. Options can be turned on and off while the
18+
# postmaster is running by editing this file and sending a SIGHUP to
19+
# the postmaster.
20+
21+
22+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
23+
# File format #
24+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
25+
# option = integer : set option to the specified value
26+
# option + : set option to 1
27+
# option - : set option to 0
28+
#
29+
# Comments begin with #, whitespace is ignored completely.
30+
# Options are separated by newlines (or by commas -- but why make it
31+
# needlessly difficult to read the file?)
32+
33+
34+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
35+
# Tracing options #
36+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
37+
# all [TRACE_ALL]
38+
# This governs what tracing occurs. If it is 0, tracing is
39+
# controlled by the more specific options listed below. Set this to 1
40+
# to trace everything, regardless of the settings below; set to -1 to
41+
# turn off all tracing.
42+
#
43+
# Any of these tracing options can be turned on with the command line
44+
# option `-T "option[,...]"'
45+
46+
all = 0
47+
48+
49+
# verbose [TRACE_VERBOSE] -- command line option `-d n' with n >= 1
50+
# Turns on verbose tracing of various events
51+
52+
verbose = 0
53+
54+
55+
# query [TRACE_QUERY] -- command line option `-d n' with n >= 2
56+
# Traces the query string before and after rewriting
57+
58+
query = 0
59+
60+
61+
# plan [TRACE_PLAN] -- command line option `-d n' with n >= 4
62+
# Traces plan trees in raw output format (see also pretty_plan)
63+
64+
plan = 0
65+
66+
67+
# parse [TRACE_PARSE] -- command line option `-d n' with n >= 3
68+
# Traces the parser output in raw form (see also pretty_parse)
69+
70+
parse = 0
71+
72+
73+
# rewritten [TRACE_REWRITTEN]
74+
# Traces the query after rewriting, in raw form (see also pretty_rewritten)
75+
76+
rewritten = 0
77+
78+
79+
# pretty_plan [TRACE_PRETTY_PLAN]
80+
# shows indented multiline versions of plan trees (see also plan)
81+
82+
pretty_plan = 0
83+
84+
85+
# pretty_parse [TRACE_PRETTY_PARSE]
86+
# Traces the parser output in a readable form (see also parse)
87+
88+
pretty_parse = 0
89+
90+
91+
# pretty_rewritten [TRACE_PRETTY_REWRITTEN]
92+
# -- command line option `-d n' with n >= 5
93+
# Traces the query after rewriting, in a readable form (see also rewritten)
94+
95+
pretty_rewritten = 0
96+
97+
98+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
99+
# Locks #
100+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
101+
102+
# TRACE_SHORTLOCKS
103+
# This value is currently unused but needed as an index placeholder.
104+
# It must be left set to 0, or mayhem may result, including segmentation
105+
# violations, perhaps.
106+
107+
shortlocks = 0
108+
109+
110+
# TRACE_LOCKS
111+
# Enable or disable tracing of ordinary locks
112+
113+
locks = 0
114+
115+
116+
# TRACE_USERLOCKS
117+
# Enable or disable tracing of user (advisory) locks
118+
119+
userlocks = 0
120+
121+
122+
# TRACE_SPINLOCKS
123+
# Enables or disables tracing of spinlocks, but only if LOCKDEBUG was
124+
# defined when PostgreSQL was compiled. (In the Debian release,
125+
# LOCKDEBUG is not defined, so this option is inoperative.)
126+
127+
spinlocks = 0
128+
129+
130+
# TRACE_LOCKOIDMIN
131+
# This option is is used to avoid tracing locks on system relations, which
132+
# would produce a lot of output. You should specify a value greater than
133+
# the maximum oid of system relations, which can be found with the
134+
# following query:
135+
#
136+
# select max(int4in(int4out(oid))) from pg_class where relname ~ '^pg_';
137+
#
138+
# To get a useful lock trace you can set the following pg_options:
139+
#
140+
# verbose+, query+, locks+, userlocks+, lock_debug_oidmin=17500
141+
142+
lock_debug_oidmin = 0
143+
144+
145+
# TRACE_LOCKRELATION
146+
# This option can be used to trace unconditionally a single relation,
147+
# for example pg_listener, if you suspect there are locking problems.
148+
149+
lock_debug_relid = 0
150+
151+
152+
# TRACE_NOTIFY
153+
# Turn on tracing of asynchronous notifications from the backend.
154+
155+
notify = 0
156+
157+
158+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
159+
# Memory Allocation #
160+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
161+
# These do not appear to be used at 7.0beta4
162+
163+
# TRACE_MALLOC
164+
165+
malloc = 0
166+
167+
# TRACE_PALLOC
168+
169+
palloc = 0
170+
171+
172+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
173+
# Statistics #
174+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
175+
# The statistics options are not controlled by either TRACE_ALL, or
176+
# by USE_SYSLOG. These options cannot be used togther with the
177+
# command line option `-s'.
178+
179+
# TRACE_PARSERSTATS
180+
# Prints parser statistics to standard error -- command line `-tpa[rser]'
181+
182+
parserstats = 0
183+
184+
185+
# TRACE_PLANNERSTATS
186+
# Prints planner statistics to standard error -- command line `-tpl[anner]'
187+
188+
plannerstats = 0
189+
190+
191+
# TRACE_EXECUTORSTATS
192+
# Prints executor statistics to standard error -- command line `-te[xecutor]'
193+
194+
executorstats = 0
195+
196+
197+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
198+
# options controlling run-time behaviour #
199+
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
200+
201+
# OPT_LOCKREADPRIORITY
202+
# lock priority, see lock.c -- Does not appear to be used
203+
204+
lock_read_priority = 0
205+
206+
207+
# OPT_DEADLOCKTIMEOUT
208+
# deadlock timeout; set this to a non-zero integer, which is the number
209+
# of seconds that the backend should wait before deciding that it is in
210+
# a deadlock and timing out. The system default is 1 second.
211+
212+
deadlock_timeout = 0
213+
214+
215+
# nofsync [OPT_NOFSYNC] -- command line option `-F'
216+
# If this is non-zero, fsync will be turned off; this means that saving
217+
# to disk will be left to the normal operating system sync. If this
218+
# option is zero, every transaction will trigger a sync to disk; this
219+
# gives increased safety at the expense of performance.
220+
221+
nofsync = 0
222+
223+
224+
# OPT_SYSLOG
225+
# This controls the destination of [many] messages and traces:
226+
# 0 : write to stdout or stderr
227+
# 1 : write to stdout or stderr, and also through syslogd
228+
# 2 : log only through syslogd
229+
# [Not all messages have been converted to use routines controlled by
230+
# this parameter; unconverted ones will print to stdout or stderr
231+
# unconditionally and never to syslogd.]
232+
233+
syslog = 0
234+
235+
236+
# OPT_HOSTLOOKUP
237+
# enable hostname lookup in ps_status. If this is set, a reverse
238+
# lookup will be done on the connecting IP address (for TCP/IP
239+
# connections) for inclusion in the ps_status display.
240+
241+
hostlookup = 0
242+
243+
244+
# OPT_SHOWPORTNUMBER
245+
# show port number in ps_status. If this is set, the TCP port number
246+
# will be included in the ps_status display (for TCP/IP connections).
247+
248+
showportnumber = 0
249+

0 commit comments

Comments
 (0)