[csw-devel] SF.net SVN: gar:[16658] csw/mgar/pkg/postgresql/branches/postgresql-9. 1-raos

guengel at users.sourceforge.net guengel at users.sourceforge.net
Mon Jan 2 21:57:05 CET 2012


Revision: 16658
          http://gar.svn.sourceforge.net/gar/?rev=16658&view=rev
Author:   guengel
Date:     2012-01-02 20:57:05 +0000 (Mon, 02 Jan 2012)
Log Message:
-----------
postgresql/branches/postgresql-9.1-raos: Added section about migrating from CSWpostgresql. Location of log file can be configured now.

Modified Paths:
--------------
    csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/Makefile

Added Paths:
-----------
    csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/README.CSW
    csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/cswpostgresql.tmpl
    csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/postgresql.conf.tmpl

Removed Paths:
-------------
    csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/README.CSW
    csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/cswpostgresql.tmpl
    csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/postgresql.conf.tmpl

Modified: csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/Makefile
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/Makefile	2012-01-02 20:55:34 UTC (rev 16657)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/Makefile	2012-01-02 20:57:05 UTC (rev 16658)
@@ -118,6 +118,10 @@
 PGDOCDIR		= $(datadir)/doc/$(NAME)/$(BASE_VERSION_NODOT)
 PGLOCALSTATEDIR_BASE	= $(localstatedir)/$(NAME)
 PGDATA			= $(PGLOCALSTATEDIR_BASE)/$(BASE_VERSION_NODOT)
+# This variable has been introduced for using in EXPANDVARS files
+PGNAMEVERSIONED		= $(NAME)$(BASE_VERSION_NODOT)
+# This variable has been introduced for using in EXPANDVARS files
+PGNAME_VERSIONED	= $(NAME)-$(BASE_VERSION_NODOT)
 # Those BIN_NAMES_* are used both, for package creation and alternatives.
 # 8.4 has removed ipcclean
 BIN_NAMES_SERVER	= initdb pg_controldata pg_ctl pg_resetxlog postmaster postgres

Deleted: csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/README.CSW
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/README.CSW	2012-01-02 20:55:34 UTC (rev 16657)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/README.CSW	2012-01-02 20:57:05 UTC (rev 16658)
@@ -1,120 +0,0 @@
-OpenCSW PostgreSQL
-==================
-
-
-Parallel Installations
-----------------------
-
-OpenCSW's PostgreSQL allows for parallel installation of different
-PostgreSQL versions. Therefore, the binaries have appended the
-PostgreSQL version, e.g. PostgreSQL's @VERSION@ `psql' is named
-`psql- at BASE_VERSION_NODOT@'. The same holds for manpages.
-
-The notable exception to this are development files. Development files
-are only available for the latest PostgreSQL version provided by
-OpenCSW and have no version appended.
-
-Please see also `Starting the PostgreSQL Server' below for caveat on
-running multiple PostgreSQL servers in parallel.
-
-
-32/64-bit Binaries
-------------------
-
-It can be chosen between 32-bit or 64-bit binaries using the
-alternatives mechanism (see the alternative's README.user). By
-default, PostgreSQL will use 64-bit binaries.
-
-Alternatives are provided for server, client, contrib, and dev
-binaries separately. This makes it possible to select different memory
-models for those binaries independently.
-
-In order to list the alternatives provided, issue
-
- /opt/csw/sbin/alternatives --list
-
-on the command line.
-
-Please note, that a database cluster initialized by the 32-bit server
-binaries cannot be used by the 64-bit versions and vice versa. If you
-want to switch the memory model of the server, you have to
-
- 1. dump the entire database cluster
- 2. switch the memory model of the server binaries
- 3. remove the database cluster
- 4. re-initialize the database cluster using `initdb- at BASE_VERSION_NODOT@'
-    (see also `Initializing the Database Cluster' below)
- 5. start the server and restore the database cluster from the dump
-    created in step 1.
-
-
-Starting the PostgreSQL Server
-------------------------------
-
-When installing the PostgreSQL server for the first time, only the
-database cluster will be initialized using default values provided by
-
- @sysconfdir@/postgresql- at BASE_VERSION_NODOT@.conf
-
-and the database server will not be started, allowing for
-post-installation customization.
-
-In order to start the PostgreSQL server you can either use
-
- svcadm enable cswpostgresql- at BASE_VERSION_NODOT@    # Solaris 10+ only
-
-or
-
- @sysconfdir@/init.d/cswpostgresql- at BASE_VERSION_NODOT@ start
-
-Please note, that when installing multiple PostgreSQL server versions
-in parallel, the above method will work for the first database server
-started only. Subsequent servers starts will fail unless the listening
-port is set to distinct values using the `SERVEROPTS' in
-
- @sysconfdir@/postgresql-XY.conf
-
-like
-
- SERVEROPTS="-p <portnum>"
-
-where `<portnum>' is the port number the server has to listen on,
-which is by default 5432. So, one could configure the servers, for
-instance, to make the first server listen on 5432, the second on 5433,
-and so on.
-
-Alternatively, one can use the `postgresql.conf' file in the database
-cluster directory to provide a different listening port.
-
-
-User Configuration of Server Options
-------------------------------------
-
-Configuration of the server start-up options is done through a
-user-configuration file, `@sysconfdir@/postgresql- at BASE_VERSION_NODOT@.conf'.
-A sample template has been provided for you at `/etc/opt/csw/postgresql- at BASE_VERSION_NODOT@.conf.CSW'.
-
-This file also defines the location of the PostgreSQL database
-cluster in `PGDATA', which is by default `/var/opt/csw/postgresql/@BASE_VERSION_NODOT@'.
-
-
-Initializing the Database Cluster
----------------------------------
-
-The startup script `/etc/opt/csw/init.d/cswpostgresql- at BASE_VERSION_NODOT@' allows to
-initialize the database cluster by providing the argument `init' as such
-
- /etc/opt/csw/init.d/cswpostgresql- at BASE_VERSION_NODOT@ init
-
-This will initialize the database cluster at the location specified in
-the `PGDATA' variable defined in `/etc/opt/csw/postgresql- at BASE_VERSION_NODOT@.conf'.
-
-When installing PostgreSQL for the first time, the database cluster
-will be initialized using default values.
-
-
---
-That's all folks.
-
-Rafael Ostertag
-raos at opencsw.org

Copied: csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/README.CSW (from rev 16646, csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/README.CSW)
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/README.CSW	                        (rev 0)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/README.CSW	2012-01-02 20:57:05 UTC (rev 16658)
@@ -0,0 +1,145 @@
+OpenCSW PostgreSQL
+==================
+
+
+Parallel Installations
+----------------------
+
+OpenCSW's PostgreSQL allows for parallel installation of different
+PostgreSQL versions. Therefore, the binaries have appended the
+PostgreSQL version number, e.g. PostgreSQL's @VERSION@ `psql' is named
+`psql- at BASE_VERSION_NODOT@'. The same holds for manpages.
+
+The notable exception to this are development files. Development files
+are only available for the latest PostgreSQL version provided by
+OpenCSW and have no version number appended.
+
+Please see also `Starting the PostgreSQL Server' below for caveat on
+running multiple PostgreSQL servers in parallel.
+
+
+Migrating from CSWpostgresql
+----------------------------
+
+CSWpostgresql has been superseeded by CSW at NAME@@BASE_VERSION_NODOT at .
+It is possible to have CSWpostgresql and CSW at NAME@@BASE_VERSION_NODOT@
+installed on the same system, though. Please refer to `Starting the
+PostgreSQL Server' below for more information on how to run multiple
+PostgreSQL instances on the same system.
+
+In order to migrate from CSWpostgresql to CSW at NAME@@BASE_VERSION_NODOT@,
+create a full dump of the CSWpostgresql database cluster as
+described in
+
+ http://www.postgresql.org/docs/@BASE_VERSION@/static/upgrading.html
+
+and transfer it to the CSW at NAME@@BASE_VERSION_NODOT@ database cluster.
+
+
+32/64-bit Binaries
+------------------
+
+It can be chosen between 32-bit or 64-bit binaries using the
+alternatives mechanism (see the alternative's README.user). By
+default, PostgreSQL will use 64-bit binaries.
+
+Alternatives are provided for server, client, contrib, and dev
+binaries separately. This makes it possible to select different memory
+models for those binaries independently.
+
+In order to list the alternatives provided, issue
+
+ /opt/csw/sbin/alternatives --list
+
+on the command line.
+
+Please note, that a database cluster initialized by the 32-bit server
+binaries cannot be used by the 64-bit versions and vice versa. If you
+want to switch the memory model of the server, you have to
+
+ 1. dump the entire database cluster
+ 2. switch the memory model of the server binaries
+ 3. remove the database cluster
+ 4. re-initialize the database cluster using `initdb- at BASE_VERSION_NODOT@'
+    (see also `Initializing the Database Cluster' below)
+ 5. start the server and restore the database cluster from the dump
+    created in step 1.
+
+
+Starting the PostgreSQL Server
+------------------------------
+
+When installing the PostgreSQL server for the first time, only the
+database cluster will be initialized using default values provided by
+
+ @sysconfdir@/postgresql- at BASE_VERSION_NODOT@.conf
+
+and the database server will not be started, thus allowing for
+post-installation customization.
+
+In order to start the PostgreSQL server you can either use
+
+ svcadm enable cswpostgresql- at BASE_VERSION_NODOT@    # Solaris 10+ only
+
+or
+
+ @sysconfdir@/init.d/cswpostgresql- at BASE_VERSION_NODOT@ start
+
+Please note, that when installing multiple PostgreSQL server versions
+in parallel, the above method will work for the first database server
+started only. Subsequent servers starts will fail unless the listening
+port is set to distinct values using the `SERVEROPTS' in
+
+ @sysconfdir@/postgresql-XY.conf
+
+like
+
+ SERVEROPTS="-p <portnum>"
+
+where `<portnum>' is the port number the server has to listen on,
+which is by default 5432. So, one could configure the servers, for
+instance, to make the first server listen on 5432, the second on 5433,
+and so on.
+
+Alternatively, one can use the `postgresql.conf' file in the database
+cluster directory to provide a different listening port.
+
+
+User Configuration of Server Options
+------------------------------------
+
+Configuration of the server start-up options is done through a
+user-configuration file, `@sysconfdir@/postgresql- at BASE_VERSION_NODOT@.conf', regardless of
+whether Solaris SMF or System V-style initialization is used.
+
+This file also defines the location of the PostgreSQL database cluster
+in `PGDATA', which is by default
+
+ /var/opt/csw/postgresql/@BASE_VERSION_NODOT@
+
+
+Initializing the Database Cluster
+---------------------------------
+
+The startup script `/etc/opt/csw/init.d/cswpostgresql- at BASE_VERSION_NODOT@' allows to
+initialize the database cluster by providing the argument `init' as such
+
+ /etc/opt/csw/init.d/cswpostgresql- at BASE_VERSION_NODOT@ init
+
+This will initialize the database cluster at the location specified in
+the `PGDATA' variable defined in `/etc/opt/csw/postgresql- at BASE_VERSION_NODOT@.conf'.
+
+When installing PostgreSQL for the first time, the database cluster
+will be initialized using default values.
+
+Please note, that when changing the memory model of the server
+binaries, i.e. from 32-bit to 64-bit or vice versa, you have to
+re-initialize the database cluster (see also `32/64-bit Binaries'
+above).
+
+
+--
+That's all folks.
+
+Rafael Ostertag
+raos at opencsw.org

Deleted: csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/cswpostgresql.tmpl
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/cswpostgresql.tmpl	2012-01-02 20:55:34 UTC (rev 16657)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/cswpostgresql.tmpl	2012-01-02 20:57:05 UTC (rev 16658)
@@ -1,116 +0,0 @@
-#!/bin/sh
-# $Id$
-#
-# PostgreSQL startup script - part of the CSWpostgresql package
-#
-# 2009-11-29  Maciej Blizinski (maciej at opencsw.org)
-#   - Parametrized file locations
-#   - Style changes
-#
-#
-#RC_KNUM 20         # Number used for kill script symlink, e.g. K20cswfoo
-#RC_SNUM 80         # Number used for start script symlink, e.g. S80cswfoo
-#RC_KLEV 0,1,2,S    # Run levels that should have a kill script symlink
-#RC_SLEV 3          # Run levels that should have a start script symlink
-#AUTOENABLE no      # If set to no will not enable service regardless of
-#                     local csw.conf, use when a package needs setup before
-#                     being useful, would otherwise leave service in
-#                     maintenance mode
-
-VERSION=@BASE_VERSION_NODOT@
-
-USERCONF=@CSWPGSQLCONFFILE_VERSIONED@
-PGCTL=@bindir@/pg_ctl-${VERSION}
-PGINIT=@bindir@/initdb-${VERSION}
-
-# Read in the user configuration file
-[ -s /opt/csw/etc/${USERCONF} ] && . /opt/csw/etc/${USERCONF}
-[ -s @sysconfdir@/${USERCONF} ] && . @sysconfdir@/${USERCONF}
-
-# Defaults
-[ -z "${PGDATA}" ] && PGDATA=@PGDATA@
-[ -z "${SHUTDOWNMODE}" ] && SHUTDOWNMODE=fast
-[ -z "${PGENCODING}" ] && PGENCODING=UTF8
-[ -z "${PGSUPERUSER}" ] && PGSUPERUSER=postgres
-
-if [ -n "${SERVEROPTS}" ]
-then
-    # Remove the -o option, we provide it later on
-    SERVEROPTS=`echo "${SERVEROPTS}" | sed 's/^-o[ ]*//'`
-fi
-if [ -n "${PGLOCALE}" ]
-then
-    PGLOCALE="--locale=${PGLOCALE}"
-fi
-
-
-# Exit if postgres user hasn't been created.
-# FIXME: This bit of code is old. It might be obsolete.
-if grep '^postgres:' /etc/passwd >/dev/null; then
-	echo > /dev/null
-else
-  getent passwd postgres >/dev/null
-  if [ $? -ne 0 ] ; then
-	 exit 0
-  fi
-fi
-
-cd /
-
-case "$1" in
-start)
-      if [ -d ${PGDATA} -a `ls -l ${PGDATA} 2> /dev/null | wc -l` -gt 1 ]; then
-	 # PostgreSQL data directory exists and is populated
-	 echo "Starting PostgreSQL..."
-	 if [ -n "${SERVEROPTS}" ]
-	 then
-	     su postgres -c "${PGCTL} start -D ${PGDATA} -l ${PGDATA}/postgresql.log -o '${SERVEROPTS}'"
-	 else
-	     su postgres -c "${PGCTL} start -D ${PGDATA} -l ${PGDATA}/postgresql.log"
-	 fi
-      fi
-      ;;
-
-stop)
-     echo "Stopping PostgreSQL database..."
-     su postgres -c "${PGCTL} stop -D ${PGDATA} -l ${PGDATA}/postgresql.log -m ${SHUTDOWNMODE}"
-     true  # The previous command fails when there's no .pid file
-     ;;
-
-restart)
-     echo "Restarting PostgreSQL database..."
-     if [ -n "${SERVEROPTS}" ]
-     then
-	 su postgres -c "${PGCTL} restart -D ${PGDATA} -l ${PGDATA}/postgresql.log -m ${SHUTDOWNMODE} -o '${SERVEROPTS}'"
-     else
-	 su postgres -c "${PGCTL} restart -D ${PGDATA} -l ${PGDATA}/postgresql.log -m ${SHUTDOWNMODE}"
-     fi
-     ;;
-
-reload)
-     echo "Reloading PostgreSQL database..."
-     su postgres -c "${PGCTL} reload -D ${PGDATA} -l ${PGDATA}/postgresql.log"
-     ;;
-
-status)
-     su postgres -c "${PGCTL} status -D ${PGDATA}"
-     ;;
-
-init)
-     # create and initialise data directory
-     echo "Creating PostgreSQL data directory at ${PGDATA}..."
-     # Create it, unless it's already there and empty
-     [ -d "${PGDATA}" -a `ls -l ${PGDATA} 2> /dev/null | wc -l` -eq 1 ] || mkdir -p "${PGDATA}"
-     chown postgres "${PGDATA}"
-     chmod 0700 "${PGDATA}"
-     echo "Initialising PostgreSQL database..."
-     su postgres -c "\"${PGINIT}\" -D \"${PGDATA}\" -E ${PGENCODING} -U ${PGSUPERUSER} ${PGLOCALE}"
-     ;;
-
-*)
-     echo "Usage: ${0} (init|start|stop|restart|reload|status)"
-     ;;
-
-esac
-
-# vim:set ft=sh sw=2 ts=2 sts=2 expandtab si ci:

Copied: csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/cswpostgresql.tmpl (from rev 16646, csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/cswpostgresql.tmpl)
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/cswpostgresql.tmpl	                        (rev 0)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/cswpostgresql.tmpl	2012-01-02 20:57:05 UTC (rev 16658)
@@ -0,0 +1,117 @@
+#!/bin/sh
+# $Id$
+#
+# PostgreSQL startup script - part of the CSWpostgresql package
+#
+# 2009-11-29  Maciej Blizinski (maciej at opencsw.org)
+#   - Parametrized file locations
+#   - Style changes
+#
+#
+#RC_KNUM 20         # Number used for kill script symlink, e.g. K20cswfoo
+#RC_SNUM 80         # Number used for start script symlink, e.g. S80cswfoo
+#RC_KLEV 0,1,2,S    # Run levels that should have a kill script symlink
+#RC_SLEV 3          # Run levels that should have a start script symlink
+#AUTOENABLE no      # If set to no will not enable service regardless of
+#                     local csw.conf, use when a package needs setup before
+#                     being useful, would otherwise leave service in
+#                     maintenance mode
+
+VERSION=@BASE_VERSION_NODOT@
+
+USERCONF=@CSWPGSQLCONFFILE_VERSIONED@
+PGCTL=@bindir@/pg_ctl-${VERSION}
+PGINIT=@bindir@/initdb-${VERSION}
+
+# Read in the user configuration file
+[ -s /opt/csw/etc/${USERCONF} ] && . /opt/csw/etc/${USERCONF}
+[ -s @sysconfdir@/${USERCONF} ] && . @sysconfdir@/${USERCONF}
+
+# Defaults
+[ -z "${PGDATA}" ] && PGDATA=@PGDATA@
+[ -z "${SHUTDOWNMODE}" ] && SHUTDOWNMODE=fast
+[ -z "${PGENCODING}" ] && PGENCODING=UTF8
+[ -z "${PGSUPERUSER}" ] && PGSUPERUSER=postgres
+[ -z "${PGLOGOUTPUT}" ] && PGLOGOUTPUT=${PGDATA}/postgresql.log
+
+if [ -n "${SERVEROPTS}" ]
+then
+    # Remove the -o option, we provide it later on
+    SERVEROPTS=`echo "${SERVEROPTS}" | sed 's/^-o[ ]*//'`
+fi
+if [ -n "${PGLOCALE}" ]
+then
+    PGLOCALE="--locale=${PGLOCALE}"
+fi
+
+
+# Exit if postgres user hasn't been created.
+# FIXME: This bit of code is old. It might be obsolete.
+if grep '^postgres:' /etc/passwd >/dev/null; then
+	echo > /dev/null
+else
+  getent passwd postgres >/dev/null
+  if [ $? -ne 0 ] ; then
+	 exit 0
+  fi
+fi
+
+cd /
+
+case "$1" in
+start)
+      if [ -d ${PGDATA} -a `ls -l ${PGDATA} 2> /dev/null | wc -l` -gt 1 ]; then
+	 # PostgreSQL data directory exists and is populated
+	 echo "Starting PostgreSQL..."
+	 if [ -n "${SERVEROPTS}" ]
+	 then
+	     su postgres -c "${PGCTL} start -D ${PGDATA} -l ${PGLOGOUTPUT} -o '${SERVEROPTS}'"
+	 else
+	     su postgres -c "${PGCTL} start -D ${PGDATA} -l ${PGLOGOUTPUT}"
+	 fi
+      fi
+      ;;
+
+stop)
+     echo "Stopping PostgreSQL database..."
+     su postgres -c "${PGCTL} stop -D ${PGDATA} -l ${PGLOGOUTPUT} -m ${SHUTDOWNMODE}"
+     true  # The previous command fails when there's no .pid file
+     ;;
+
+restart)
+     echo "Restarting PostgreSQL database..."
+     if [ -n "${SERVEROPTS}" ]
+     then
+	 su postgres -c "${PGCTL} restart -D ${PGDATA} -l ${PGLOGOUTPUT} -m ${SHUTDOWNMODE} -o '${SERVEROPTS}'"
+     else
+	 su postgres -c "${PGCTL} restart -D ${PGDATA} -l ${PGLOGOUTPUT} -m ${SHUTDOWNMODE}"
+     fi
+     ;;
+
+reload)
+     echo "Reloading PostgreSQL database..."
+     su postgres -c "${PGCTL} reload -D ${PGDATA} -l ${PGLOGOUTPUT}"
+     ;;
+
+status)
+     su postgres -c "${PGCTL} status -D ${PGDATA}"
+     ;;
+
+init)
+     # create and initialise data directory
+     echo "Creating PostgreSQL data directory at ${PGDATA}..."
+     # Create it, unless it's already there and empty
+     [ -d "${PGDATA}" -a `ls -l ${PGDATA} 2> /dev/null | wc -l` -eq 1 ] || mkdir -p "${PGDATA}"
+     chown postgres "${PGDATA}"
+     chmod 0700 "${PGDATA}"
+     echo "Initialising PostgreSQL database..."
+     su postgres -c "\"${PGINIT}\" -D \"${PGDATA}\" -E ${PGENCODING} -U ${PGSUPERUSER} ${PGLOCALE}"
+     ;;
+
+*)
+     echo "Usage: ${0} (init|start|stop|restart|reload|status)"
+     ;;
+
+esac
+
+# vim:set ft=sh sw=2 ts=2 sts=2 expandtab si ci:

Deleted: csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/postgresql.conf.tmpl
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/postgresql.conf.tmpl	2012-01-02 20:55:34 UTC (rev 16657)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/postgresql.conf.tmpl	2012-01-02 20:57:05 UTC (rev 16658)
@@ -1,61 +0,0 @@
-# Example PostgreSQL server configuration file.
-# 
-# Provided by the OpenCSW package of PostgreSQL.  This file is read by the
-# /etc/opt/csw/init.d/cswpostgres startup script, and can be used to override
-# the defaults.
-#
-# Please use alternatives to choose between 32/64bit version of the
-# server (See also @docdir@/@NAME@@BASE_VERSION_NODOT at _server/README.CSW)
-
-# The location of the data directory.
-# Default: @PGDATA@
-PGDATA=@PGDATA@
-
-# The shutdown mode used
-#
-# Shutdown modes are:
-#  smart       quit after all clients have disconnected
-#  fast        quit directly, with proper shutdown
-#  immediate   quit without complete shutdown; will lead to recovery on restart
-#
-# Default: fast
-SHUTDOWNMODE=fast
-
-# Additional options to pass to postmaster.
-#
-# Please note: it is no longer necessary to pass the '-o' option.
-#
-# SERVEROPTS="-i"
-
-
-##
-## The following options are used by initdb when initializing the
-## database cluster
-##
-
-# The PostgreSQL encoding of the database cluster. This is used when
-# initializing the database cluster using the init script.
-#
-# For a complete list of character sets supported, go to
-#
-#  http://www.postgresql.org/docs/@BASE_VERSION@/static/multibyte.html#MULTIBYTE-CHARSET-SUPPORTED
-#
-# Default: UTF8
-PGENCODING=UTF8
-
-# The locale used to initialize the database cluster.
-#
-# If none is specified, the locale is inherited from the environment
-# that initdb runs in.
-#
-# Default: <empty>
-#PGLOCALE=en_US.UTF-8
-
-# Selects the user name of the database superuser. This defaults to
-# the name of the effective user running initdb. It is really not
-# important what the superuser's name is, but one might choose to keep
-# the customary name postgres, even if the operating system user's
-# name is different.
-#
-# Default: postgres
-PGSUPERUSER=postgres

Copied: csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/postgresql.conf.tmpl (from rev 16646, csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/postgresql.conf.tmpl)
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/postgresql.conf.tmpl	                        (rev 0)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1-raos/files/postgresql.conf.tmpl	2012-01-02 20:57:05 UTC (rev 16658)
@@ -0,0 +1,63 @@
+# This is a shell script fragment.
+# 
+# This file is sourced by the /etc/opt/csw/init.d/csw at PGNAME_VERSIONED@
+# startup script, and can be used to override the defaults.
+#
+# Please use alternatives to choose between 32/64bit version of the
+# server (See also @docdir@/@PGNAMEVERSIONED at _server/README.CSW)
+
+# The location of the data directory.
+#
+# Default: @PGDATA@
+PGDATA=@PGDATA@
+
+# Specifies the shutdown mode. mode can be smart, fast, or immediate,
+# or the first letter of one of these three.
+#
+# Default: fast
+#SHUTDOWNMODE=fast
+
+# Append the server log output to filename. If the file does not
+# exist, it is created. The umask is set to 077, so access to the log
+# file from other users is disallowed by default
+#
+# Default: ${PGDATA}/postgresql.log
+#PGLOGOUTPUT=${PGDATA}/postgresql.log
+
+# Additional options to pass to postmaster.
+#
+# Please note: it is no longer necessary to pass the '-o' option.
+#
+# SERVEROPTS="-i"
+
+##
+## The following variables are used by initdb when initializing the
+## database cluster
+##
+
+# The PostgreSQL encoding of the database cluster. This is used when
+# initializing the database cluster using the init script.
+#
+# For a complete list of character sets supported, go to
+#
+#  http://www.postgresql.org/docs/@BASE_VERSION@/static/multibyte.html#MULTIBYTE-CHARSET-SUPPORTED
+#
+# Default: UTF8
+#PGENCODING=UTF8
+
+# The locale used to initialize the database cluster.
+#
+# If none is specified, the locale is inherited from the environment
+# that initdb runs in.
+#
+# Default: <empty>
+#PGLOCALE=en_US.UTF-8
+
+# Selects the user name of the database superuser. This defaults to
+# the name of the effective user running initdb. It is really not
+# important what the superuser's name is, but one might choose to keep
+# the customary name postgres, even if the operating system user's
+# name is different.
+#
+# Default: postgres
+#PGSUPERUSER=postgres

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list