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.18 -r1.19
--- openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 4 Feb 2004 16:47:35 -0000 1.18
+++ openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 12 Feb 2004 13:51:43 -0000 1.19
@@ -1,5 +1,5 @@
-
%myvars;
@@ -14,18 +14,18 @@
Skip this section if you will run only Oracle.
- OpenACS &version; will run with PostgreSQL 7.2.x, 7.3.2, 7.3.3, and 7.3.4. 7.3.4 is the recommended version of PostgreSQL. PostgreSQL 7.4 has been verified.
+ See for version compatibility.
- Mac OS X
- If you are running Mac OS X prior to 10.3, you should be able to install and use PostGreSQL 7.2.x or 7.3.x. Mac OS X 10.3 requires PostGreSQL 7.4.
+ Special notes for Mac OS X
+ If you are running Mac OS X prior to 10.3, you should be able to install and use PostGreSQL 7.3.x. Mac OS X 10.3 requires PostGreSQL 7.4.
- Debian
+ Special Notes for DebianDebian users, especially Debian stable users, should install PostGreSQL from source as detailed below. Debian unstable users: the following process has been known to work:
@@ -39,7 +39,7 @@
- Using the Red Hat RPM
+ Special Notes for Red HatRed Hat users: If you install PostgreSQL 7.3.2 from the Red Hat 9 RPM, you
can skip a few steps. These shell commands add some links for compatibility with the directories from a source-based install; start the service; create a new group for web service
users, and modify the postgres user's
@@ -70,7 +70,8 @@
su - postgres
... and then skip to . Something similar may work for other binary packages as well.
-
+
+ Safe approach: install from source
@@ -153,6 +154,7 @@
UnicodeUnicodein PostgreSQL support, add the flags --enable-locale and --enable-multibyte. If you want to see what the other possibilities are, run ./configure --help.
+ On debian woody (stable, 3.0), do ./configure --without-readline --without-zlib.[root src]# su - postgres
[postgres pgsql]$ cd /usr/local/src/postgresql-7.3.4
[postgres postgresql-7.3.4]$ ./configure
@@ -188,15 +190,15 @@
PostgreSQL.
- [postgres tsearch]$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
+ [postgres postgresql-7.3.4]$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
(17 lines omitted)
or
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
-[postgres tsearch]$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/data/server.log start
+[postgres postgresql-7.3.4]$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/data/server.log start
postmaster successfully started
-[postgres tsearch]$
+[postgres postgresql-7.3.4]$
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/data/server.log start
@@ -213,15 +215,15 @@
databases are created. We can verify that it was created
with the createlang command in list mode.
- [postgres pgsql]$ createlang plpgsql template1
+ [postgres postgresql-7.3.4]$ createlang plpgsql template1
[postgres pgsql]$ createlang -l template1
Procedural languages
Name | Trusted?
---------+----------
plpgsql | t
(1 row)
-[postgres pgsql]$
+[postgres pgsql-7.3.4]$
createlang plpgsql template1
createlang -l template1
@@ -272,7 +274,7 @@
bunch of symlinks that ensure that, when the operating system
changes runlevels, postgresql goes to the appropriate
state. Red Hat and Debian and SuSE each work a little
- differently.
+ differently. If you haven't untarred the OpenACS tarball, you will need to do so now to access the postgresql.txt file.
Red Hat RPM:
@@ -316,7 +318,7 @@
service postgresql start
Debian:
- [root ~]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
+ [root ~]# cp /tmp/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
[root ~]# chown root.root /etc/init.d/postgresql
[root ~]# chmod 755 /etc/init.d/postgresql
[root ~]#
@@ -467,12 +469,13 @@
#
checkpoint_segments = 3 # in logfile segments (16MB each), min 1
- Restart postgres (service postgresql restart) so that the changes take effect.
+ Restart postgres (Redhat: service postgresql restart. Many other systems: /etc/init.d/postgresql restart) so that the changes take effect.
+
+
-
-
+
more information about PostgreSQL
@@ -508,7 +511,10 @@
Performance Tuning
-
+
+
+ Tuning PostgreSQL for performance
+ ($Id$)