# /etc/postgresql/postmaster.init
#
# Copyright (c) Oliver Elphick 1997
# Part of the Debian package, postgresql. The Debian packaging is
# licensed under GPL v.2
#
# This is the configurable initialisation of the postgresql package
# The defaults are shown, but are commented out.
#
# WARNING: not all of the commented out lines can simply be
# uncommented!  Some are just explanations, not valid shell-script.
#
POSTGRES_HOME=`grep '^postgres:' /etc/passwd | awk -F: '{print $6}' | head -1`
if [ -z "$POSTGRES_HOME" ]
then
    POSTGRES_HOME=/var/lib/postgres
fi

# Where to find the PostgreSQL database files, including those that
# define PostgresSQL users and permissions.
# POSTGRES_DATA=/var/lib/postgres/data

# Where to send logging and debugging traces
# POSTGRES_LOG=/var/log/postgres.log

# The number of backend processes for which to reserve shared memory; this
# is the maximum number of backend processes allowed.
# PGBACKENDCOUNT=64

# The number of shared-memory buffers the postmaster is
# to allocate for backend server processes.  Each buffer is 8Kb.
# This parameter should be at least twice $PGBACKENDCOUNT and at least 16.
# If left undefined, it will default to twice the value of $PGBACKENDCOUNT.
# PGBUFFERS=(PGBACKENDCOUNT * 2)   !!Don't just uncomment this line!!

# Debugging level at which the backend servers are to operate.
# 1: trace connection traffic only; >=2: turn on debugging in the backends
# giving more information according to the debug level. Debug logs are
# sent to $POSTGRES_LOG
# PGDEBUG=0

# Whether to echo queries to the debug log: yes/no
# PGECHO=no

# Whether to disable the fsync() call after each transaction. (If fsync() is
# disabled, performance will improve at the cost of an increased risk of data
# corruption in the event of power or other hardware failure.): yes/no
# PGFSYNC=yes  (i.e. the fsync() call does not happen)

# How (by default) to present dates to the frontend; the user can override
# this setting for his own session. The choices are:
#   Style      Date            Datetime
#   ----------------------------------------------------------------
#   ISO        1999-07-17      1999-07-17 07:09:18+01
#   SQL        17/07/1999      17/07/1999 07:09:19.00 BST
#   POSTGRES   17-07-1999      Sat 17 Jul 07:09:19 1999 BST
#   GERMAN     17.07.1999      17.07.1999 07:09:19.00 BST
#   NONEURO    07-17-1999      Sat Jul 17 07:09:19 1999 BST
#   US         07-17-1999      Sat Jul 17 07:09:19 1999 BST
#   EURO       17-07-1999      Sat 17 Jul 07:09:19 1999 BST
# PGDATESTYLE=EURO

# How much memory to use for internal sorts before resorting to the disk.
# This value is in kilobytes.
# PGSORTMEM=512

# Whether to print timing and other statistics after each query: yes/no
# PGSTATS=no

# Whether to allow connections through TCP/IP as well as through Unix
# sockets: yes/no.
# By default, for greater security, we do not allow TCP/IP access.
# This means that only users on this machine can access the database.
PGALLOWTCPIP=yes

# The Unix or TCP port on which postmaster is to listen for connections
# from frontend applications.  Make sure the port is not used by any
# other application.  Please do NOT use 5341, which is used by postgresql's
# installation scripts.
# PGPORT=5432

# Locale setting for the postmaster and backend to use: this is not
# necessary for USA users, but most others will probably want to set it; it
# controls things like the format of numbers and sort collation.
# for example, use `LANG=en_GB' for British English.
# LANG=<your_locale_code>  !!Don't just uncomment this line!!

# Minimum number of entries in the kernel file table.  If the table size is
# lower, postgresql.startup attempts to increase it by writing this parameter 
# into /proc/sys/kernel/file-max.  This is only effective if the kernel has
# been compiled to support run-time configuration.
# KERNEL_FILE_MAX=1032
