Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml,v diff -u -r1.23.2.4 -r1.23.2.5 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 15 Oct 2004 14:15:50 -0000 1.23.2.4 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 15 Nov 2004 09:50:26 -0000 1.23.2.5 @@ -165,6 +165,24 @@ chown -R postgres:web /usr/local/pgsql /usr/local/src/postgresql-7.4.1 chmod 750 /usr/local/pgsql + + + FreeBSD users: + need to add more parameters. + + + [root src]# mkdir -p /usr/local/pgsql +[root src]# pw groupadd -n web +[root src]# pw useradd -n postgres -g web -d /usr/local/pgsql -s /bin/bash +[root src]# chown -R postgres:web /usr/local/pgsql /usr/local/src/postgresql-7.4.5 +[root src]# chmod -R 750 /usr/local/pgsql +[root src]# +mkdir -p /usr/local/pgsql +pw groupadd -n web +pw useradd -n postgres -g web -d /usr/local/pgsql -s /bin/bash +chown -R postgres:web /usr/local/pgsql /usr/local/src/postgresql-7.4.5 +chmod -R 750 /usr/local/pgsql + @@ -235,7 +253,8 @@ The initdb command initializes the database. pg_ctl is used to start up - PostgreSQL. + PostgreSQL. If PostgreSQL is unable to allocate enough memory, see section 11 + Tuning PostgreSQL (below). [postgres postgresql-7.4.5]$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data @@ -397,6 +416,27 @@ Starting PostgreSQL: ok [root ~]# + + FreeBSD: + [root ~]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/postgresql.txt /usr/local/etc/rc.d/postgresql.sh +[root ~]# chown root:wheel /usr/local/etc/rc.d/postgresql.sh +[root ~]# chmod 755 /usr/local/etc/rc.d/postgresql.sh +[root ~]# +cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/postgresql.txt /usr/local/etc/rc.d/postgresql.sh +chown root:wheel /usr/local/etc/rc.d/postgresql.sh +chmod 755 /usr/local/etc/rc.d/postgresql.sh + Test the script + + [root ~]# /usr/local/etc/rc.d/postgresql.sh stop +Stopping PostgreSQL: ok +[root ~]# + If PostgreSQL successfully stopped, then turn it back on because we'll use + it later. + + [root root]# /usr/local/etc/rc.d/postgresql.sh start +Starting PostgreSQL: ok +[root root]# +/usr/local/etc/rc.d/postgresql.sh start SuSE: @@ -523,6 +563,25 @@ restart) so that the changes take effect. + + FreeBSD users: See man syctl, man 5 sysctl + and man 5 loader.conf. + + Performance tuning resources: + + + + Managing Kernel Resources + about PostgreSQL shared memory and semaphores with specific operating system notes. + + + Managing Kernel Resources (development version) + This information may be experimental. + + + Tuning PostgreSQL for performance + + @@ -563,9 +622,6 @@ - - Tuning PostgreSQL for performance - ($Id$)