@@ -81,7 +81,15 @@ To install PostgreSQL on UNIX platforms:
81
81
Customization can be done by editing src/Makefile.global. You may change
82
82
the various configuration options here, such as where the PostgreSQL
83
83
executable files are installed and where postgres looks for the database
84
- directory. The configuration switches are fairly self-explanatory, but we
84
+ directory.
85
+
86
+ PostgreSQL V6.0 also supports src/Makefile.custom. This is not supplied
87
+ with the distribution, but may be created to contain only the options
88
+ you wish to change in src/Makefile.global. This has the advantage that
89
+ it will not be overwritten when you install a new version of PostgreSQL
90
+ over the top of your current installation.
91
+
92
+ The configuration switches are fairly self-explanatory, but we
85
93
will go over some of the more commonly-changed options:
86
94
87
95
- PORTNAME specifies the platform on which PostgreSQL is being built.
@@ -100,14 +108,25 @@ To install PostgreSQL on UNIX platforms:
100
108
readline is not supplied with PostgreSQL and can be found in the
101
109
usual ftp sites for GNU software.
102
110
103
- - HBA specifies whether you wish to use host-based authentication
104
- for PostgreSQL. See the section "How to Create a Database System"
105
- for how to set up the HBA permissions if you decide to use HBA.
111
+ In the simplest case, you would create src/Makefile.custom containing
112
+ just the line:
113
+
114
+ PORTNAME= portname
106
115
107
- After editing src/Makefile.global, you are ready to compile PostgreSQL
108
- (it takes about 10 minutes on a 133Mhz Pentium running linux):
116
+ (where you replace portname with the name of the system you are using).
117
+
118
+ Even easier is to enter the src directory and run the customize shell
119
+ script which will prompt you with various questions and create
120
+ Makefile.custom for you:
109
121
110
122
% cd src
123
+ % customize
124
+
125
+ After editing src/Makefile.global or src/Makefile.custom, you are ready
126
+ to compile PostgreSQL (it takes about 10 minutes on a 133Mhz Pentium
127
+ running linux):
128
+
129
+ % cd src ( if you're not already there )
111
130
% gmake
112
131
113
132
The gmake ultimately issues the message "All of PostgreSQL is
@@ -148,8 +167,8 @@ superuser. The simplest way is by creating and running a C language
148
167
function. There are plans to remedy this in future developent.
149
168
150
169
The program initdb (part of Postgres) is what initializes (creates) a
151
- database system. Initdb uses the defaults specified in Makefile.global.
152
- See the man page for initdb for more information.
170
+ database system. Initdb uses the defaults specified in Makefile.global
171
+ or Makefile.custom. See the man page for initdb for more information.
153
172
154
173
% initdb --pgdata=/usr/local/pgsql/data --pglib=/usr/local/pgsql/lib
155
174
0 commit comments