1
- Chapter 0. Installation
2
-
3
- Table of Contents
4
- Before you start
5
- Installation Procedure
6
-
7
1
Installation instructions for PostgreSQL 7.0.
8
2
9
3
Commands were tested on RedHat Linux version 5.2 using the bash shell.
@@ -58,7 +52,6 @@ Considering today's prices for hard disks, getting a large and fast hard
58
52
disk should probably be in your plans before putting a database into
59
53
production use.
60
54
61
- ---------------------------------------------------------------------------
62
55
63
56
Installation Procedure
64
57
@@ -79,7 +72,7 @@ For a fresh install or upgrading from previous releases of PostgreSQL:
79
72
(although you can). You will be told when you need to login as the
80
73
database superuser.
81
74
82
- 2. If you are not upgrading an existing system then skip to .
75
+ 2. If you are not upgrading an existing system then skip to step 4 .
83
76
84
77
You now need to back up your existing database. To dump your fairly
85
78
recent post-6.0 database installation, type
@@ -103,6 +96,7 @@ For a fresh install or upgrading from previous releases of PostgreSQL:
103
96
backup. If necessary, bring down postmaster, edit the permissions in file
104
97
/usr/local/pgsql/data/pg_hba.conf to allow only you on, then bring
105
98
postmaster back up.
99
+
106
100
3. If you are upgrading an existing system then kill the database server
107
101
now. Type
108
102
@@ -140,11 +134,13 @@ For a fresh install or upgrading from previous releases of PostgreSQL:
140
134
make choices about what gets installed. Change into the src
141
135
subdirectory and type:
142
136
143
- $ ./configure [ options ]
137
+ $ ./configure
144
138
145
- For a complete list of options, type:
139
+ followed by any options you might want to give it. For a first
140
+ installation you should be able to do fine without any. For a complete
141
+ list of options, type:
146
142
147
- ./configure --help
143
+ ./configure --help
148
144
149
145
Some of the more commonly used ones are:
150
146
@@ -231,12 +227,15 @@ For a fresh install or upgrading from previous releases of PostgreSQL:
231
227
The -D option specifies the location where the data will be stored. You
232
228
can use any path you want, it does not have to be under the
233
229
installation directory. Just make sure that the superuser account can
234
- write to it (or create it) before starting initdb.
230
+ write to the directory (or create it) before starting initdb. (If you
231
+ have already been doing the installation up to now as the PostgreSQL
232
+ superuser, you may have to log in as root temporarily to create the
233
+ data directory.)
235
234
236
235
9. The previous step should have told you how to start up the database
237
236
server. Do so now.
238
237
239
- $ /usr/local/pgsql/initdb /postmaster -D /usr/local/pgsql/data
238
+ $ /usr/local/pgsql/bin /postmaster -D /usr/local/pgsql/data
240
239
241
240
This will start the server in the foreground. To make it detach to the
242
241
background, use the -S.
@@ -270,7 +269,12 @@ suggestions.
270
269
$ cd /usr/src/pgsql/postgresql-7.0/doc
271
270
$ gmake install
272
271
273
- This will install files under /usr/local/pgsql/doc.
272
+ This will install files under /usr/local/pgsql/doc and
273
+ /usr/local/pgsql/man. To enable your system to find the man
274
+ documentation, you need to add a line like the following to a shell
275
+ startup file:
276
+
277
+ MANPATH=$MANPATH:/usr/local/pgsql/man
274
278
275
279
The documentation is also available in Postscript format. If you have a
276
280
Postscript printer, or have your machine already set up to accept
0 commit comments