Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9acf938

Browse files
author
Thomas G. Lockhart
committed
Small updates for v6.2.1.
1 parent ed00f1a commit 9acf938

File tree

1 file changed

+41
-48
lines changed

1 file changed

+41
-48
lines changed

INSTALL

Lines changed: 41 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ compliant, but with each release it gets closer.
1111
PostgreSQL, formerly called Postgres95, is a derivative of Postgres 4.2
1212
(the last release of the UC Berkeley research project). For copyright
1313
terms for PostgreSQL, please see the file named COPYRIGHT. This version
14-
was developed by a team of developers on the postgres developers mailing
15-
list. Version 1 (through 1.01) was developed by Jolly Chen and Andrew
16-
Yu.
14+
was developed by a team of developers on the Postgres developers mailing
15+
list. Version 1 (through 1.01) was developed by Jolly Chen and Andrew Yu.
1716

1817
The installation notes below assume the following (except where noted):
1918
- Commands are Unix-compatible. See note below.
2019
- Defaults are used except where noted.
21-
- User postgres is the postgres superuser.
20+
- User postgres is the Postgres superuser.
2221
- The source path is /usr/src/pgsql (other paths are possible).
2322
- The runtime path is /usr/local/pgsql (other paths are possible).
2423

@@ -111,8 +110,8 @@ PostgreSQL:
111110

112111
To check for disk space, use command "df -k".
113112

114-
4) Ftp file ftp://ftp.postgresql.org/pub/postgresql-v6.2.tar.gz from the
115-
internet. Store it in your home directory.
113+
4) Ftp file ftp://ftp.postgresql.org/pub/postgresql-v6.2.1.tar.gz from the
114+
Internet. Store it in your home directory.
116115

117116
5) Some platforms use flex. If your system uses flex then make sure
118117
you have a good version. Type
@@ -146,14 +145,15 @@ PostgreSQL:
146145
/usr/bin/flex++ which points to flex.
147146

148147
6) If you are upgrading an existing system then back up your database.
149-
The database format is liable to change every few weeks with no
150-
notice besides a quick comment in the HACKERS mailing list. It is
151-
therefore a bad idea to skip this step. Also, do not use the
152-
pg_dumpall script from v6.0 or everything will be owned by the
153-
postgres super user. Type (with the gunzip line and the following
154-
line typed as one line):
148+
For alpha- and beta-level releases, the database format is liable
149+
to change often every few weeks with no notice besides a quick comment
150+
in the HACKERS mailing list. Full releases always require a dump/reload
151+
from previous releases. It is therefore a bad idea to skip this
152+
step. Also, do not use the pg_dumpall script from v6.0 or everything
153+
will be owned by the Postgres super user. Type (with the gunzip line
154+
and the following line typed as one line):
155155
cd
156-
gunzip -c postgresql-v6.2.tar.gz |
156+
gunzip -c postgresql-v6.2.1.tar.gz |
157157
tar xvf - src/bin/pg_dump/pg_dumpall
158158
chmod a+x src/bin/pg_dump/pg_dumpall
159159
src/bin/pg_dump/pg_dumpall > db.out
@@ -218,7 +218,7 @@ PostgreSQL:
218218

219219
10) Unzip and untar the new source file. Type
220220
cd /usr/src/pgsql
221-
gunzip -c ~/postgresql-v6.2.tar.gz | tar xvf -
221+
gunzip -c ~/postgresql-v6.2.1.tar.gz | tar xvf -
222222

223223
11) Configure the source code for your system. It is this step at which
224224
you can specify your actual source path and installation paths for
@@ -378,7 +378,7 @@ PostgreSQL:
378378
cd
379379
nohup postmaster > regress.log 2>&1 &
380380

381-
Run postmaster from your postgres super user account (typically
381+
Run postmaster from your Postgres super user account (typically
382382
account postgres). DO NOT RUN POSTMASTER FROM THE ROOT ACCOUNT.
383383

384384
19) Run the regression tests. Type
@@ -404,12 +404,11 @@ PostgreSQL:
404404
platform, etc. "Failures" of this type do not indicate a problem with
405405
PostgreSQL.
406406

407-
Here is an example from a i686/Linux-ELF platform (this is the platform
408-
on which most of the regression tests were generated). No tests failed
409-
since this is the v6.2 regression reference platform.
407+
For a i686/Linux-ELF platform, no tests failed since this is the
408+
v6.2.1 regression testing reference platform.
410409

411-
Here is an example from the SPARC/Linux-ELF platform. Using the
412-
970525 beta version of PostgreSQL v6.2 the following tests "failed".
410+
For the SPARC/Linux-ELF platform, using the 970525 beta version of
411+
PostgreSQL v6.2 the following tests "failed":
413412
float8 and geometry "failed" due to minor precision differences in
414413
floating point numbers. select_views produces massively different output,
415414
but the differences are due to minor floating point differences.
@@ -418,7 +417,7 @@ PostgreSQL:
418417
the differences and then decide if those differences will affect your
419418
intended use of PostgreSQL. However, keep in mind that this is likely
420419
to be the most solid release of PostgreSQL to date, incorporating many
421-
bug fixes from v6.0, and that previous versions of PostgreSQL have been
420+
bug fixes from v6.1, and that previous versions of PostgreSQL have been
422421
in use successfully for some time now.
423422

424423
After running the tests, type
@@ -434,7 +433,7 @@ PostgreSQL:
434433
21) Start the postmaster daemon running. Type
435434
cd
436435
nohup postmaster > server.log 2>&1 &
437-
Run postmaster from your postgres super user account (typically
436+
Run postmaster from your Postgres super user account (typically
438437
account postgres). DO NOT RUN POSTMASTER FROM THE ROOT ACCOUNT.
439438

440439
22) If you haven't already done so, this would be a good time to modify
@@ -444,7 +443,7 @@ PostgreSQL:
444443
Here are some suggestions on how to do this, contributed by various
445444
users.
446445

447-
Whatever you do, postmaster must be run by user postgres, AND NOT BY
446+
Whatever you do, postmaster must be run by user postgres AND NOT BY
448447
ROOT. This is why all of the examples below start by switching user
449448
(su) to postgres. These commands also take into account the fact
450449
that environment variables like PATH and PGDATA may not be set properly.
@@ -456,16 +455,7 @@ PostgreSQL:
456455
su postgres -c "/usr/local/pgsql/bin/postmaster -S -D
457456
/usr/local/pgsql/data"
458457

459-
b) In RedHat v4.0 Linux edit file /etc/inittab to contain the
460-
following single line:
461-
pg:2345:respawn:/bin/su - postgres -c
462-
"/usr/local/pgsql/bin/postmaster -D/usr/local/pgsql/data
463-
>> /usr/local/pgsql/server.log 2>&1" /dev/null
464-
(The author of this example says this example will revive the
465-
postmaster if it dies, but he doesn't know if there are other side
466-
effects.)
467-
468-
c) In FreeBSD 2.2-RELEASE edit /usr/local/etc/rc.d/pgsql.sh to
458+
b) In FreeBSD 2.2-RELEASE edit /usr/local/etc/rc.d/pgsql.sh to
469459
contain the following lines and make it chmod 755 and chown
470460
root:bin.
471461
#!/bin/sh
@@ -478,19 +468,20 @@ PostgreSQL:
478468
You may put the line breaks as shown above. The shell is smart
479469
enough to keep parsing beyond end-of-line if there is an
480470
expression unfinished. The exec saves one layer of shell under
481-
the postmaster process so the parent is init. Note: Unlike the
471+
the postmaster process so the parent is init. Note: Unlike most
482472
other examples, this one has been tested.
483473

484-
d) In RedHat v4.0 Linux create file /etc/rc.d/init.d/postgres.init to
485-
contain the following single line:
486-
su -c "cd ~postgres; nohup /usr/local/pgsql/bin/postmaster
487-
-D /usr/local/pgsql/data > server.log 2>&1 &" postgres
488-
Next, type the following:
489-
cd /etc/rc3.d
490-
ln -s ../init.d/postgres.init S1000postgres
491-
Change "1000" to a number of your choice to indicate the
492-
loading order of the various programs pointed to in directory
493-
/etc/rc3.d. (Note that this example has not been tested yet.)
474+
c) In RedHat v4.0 Linux edit file /etc/inittab to contain the
475+
following single line:
476+
pg:2345:respawn:/bin/su - postgres -c
477+
"/usr/local/pgsql/bin/postmaster -D/usr/local/pgsql/data
478+
>> /usr/local/pgsql/server.log 2>&1" /dev/null
479+
(The author of this example says this example will revive the
480+
postmaster if it dies, but he doesn't know if there are other side
481+
effects.)
482+
483+
d) The contrib/linux area of the PostgreSQL distribution has an example
484+
init.d script compatible with and tested using recent RedHat packages.
494485

495486
22a) If you haven't already done so, this would be a good time to modify
496487
your computer to do regular maintainence. The following should be
@@ -512,7 +503,7 @@ PostgreSQL:
512503
cd
513504
psql -e template1 < db.out
514505

515-
If your old database uses either path or polygon geometric data types,
506+
If your pre-v6.2 database uses either path or polygon geometric data types,
516507
then you will need to upgrade any columns containing those types. To
517508
do so, type (from within psql)
518509
update YourTable set PathCol = UpgradePath(PathCol);
@@ -526,7 +517,7 @@ PostgreSQL:
526517
syntax, but RevertPoly() is provided to reverse the effects of a
527518
mis-applied upgrade.
528519

529-
24) If you are a new user, you may wish to play with postgres as described
520+
24) If you are a new user, you may wish to play with Postgres as described
530521
below.
531522

532523
25) Clean up after yourself. Type
@@ -648,6 +639,8 @@ Ultrix4.x:
648639
s2k-ftp.CS.Berkeley.EDU:pub/personal/andrew/libdl-1.1.tar.Z
649640

650641
Linux:
642+
A linux-2.0.30/libc-5.3.12/RedHat-4.2 running on a dual processor
643+
i686 is the regression testing reference machine.
651644
The linux-elf port installs cleanly. If you are using an
652645
i486 processor or higher, you can edit template/linux-elf
653646
to include "-m486" as a compiler option. configure does not
@@ -656,10 +649,10 @@ Linux:
656649
make to include "#define HAVE_SIGSETJMP 1". Note that I have
657650
not seen any difference in PostgreSQL behavior either way.
658651
(Thomas G. Lockhart
659-
<Thomas.Lockhart@jpl.nasa.gov> 97/05/17)
652+
<lockhart@alumni.caltech.edu> 97/10/14)
660653

661654
For non-ELF Linux, the dld library MUST be obtained and installed on
662-
the system. It enables dynamic link loading capability to the postgres
655+
the system. It enables dynamic link loading capability to the Postgres
663656
port. The dld library can be obtained from the sunsite linux
664657
distributions. The current name is dld-3.2.5.
665658
(Jalon Q. Zimmerman

0 commit comments

Comments
 (0)