@@ -11,14 +11,13 @@ compliant, but with each release it gets closer.
11
11
PostgreSQL, formerly called Postgres95, is a derivative of Postgres 4.2
12
12
(the last release of the UC Berkeley research project). For copyright
13
13
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.
17
16
18
17
The installation notes below assume the following (except where noted):
19
18
- Commands are Unix-compatible. See note below.
20
19
- Defaults are used except where noted.
21
- - User postgres is the postgres superuser.
20
+ - User postgres is the Postgres superuser.
22
21
- The source path is /usr/src/pgsql (other paths are possible).
23
22
- The runtime path is /usr/local/pgsql (other paths are possible).
24
23
@@ -111,8 +110,8 @@ PostgreSQL:
111
110
112
111
To check for disk space, use command "df -k".
113
112
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.
116
115
117
116
5) Some platforms use flex. If your system uses flex then make sure
118
117
you have a good version. Type
@@ -146,14 +145,15 @@ PostgreSQL:
146
145
/usr/bin/flex++ which points to flex.
147
146
148
147
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):
155
155
cd
156
- gunzip -c postgresql-v6.2.tar.gz |
156
+ gunzip -c postgresql-v6.2.1. tar.gz |
157
157
tar xvf - src/bin/pg_dump/pg_dumpall
158
158
chmod a+x src/bin/pg_dump/pg_dumpall
159
159
src/bin/pg_dump/pg_dumpall > db.out
@@ -218,7 +218,7 @@ PostgreSQL:
218
218
219
219
10) Unzip and untar the new source file. Type
220
220
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 -
222
222
223
223
11) Configure the source code for your system. It is this step at which
224
224
you can specify your actual source path and installation paths for
@@ -378,7 +378,7 @@ PostgreSQL:
378
378
cd
379
379
nohup postmaster > regress.log 2>&1 &
380
380
381
- Run postmaster from your postgres super user account (typically
381
+ Run postmaster from your Postgres super user account (typically
382
382
account postgres). DO NOT RUN POSTMASTER FROM THE ROOT ACCOUNT.
383
383
384
384
19) Run the regression tests. Type
@@ -404,12 +404,11 @@ PostgreSQL:
404
404
platform, etc. "Failures" of this type do not indicate a problem with
405
405
PostgreSQL.
406
406
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.
410
409
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":
413
412
float8 and geometry "failed" due to minor precision differences in
414
413
floating point numbers. select_views produces massively different output,
415
414
but the differences are due to minor floating point differences.
@@ -418,7 +417,7 @@ PostgreSQL:
418
417
the differences and then decide if those differences will affect your
419
418
intended use of PostgreSQL. However, keep in mind that this is likely
420
419
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
422
421
in use successfully for some time now.
423
422
424
423
After running the tests, type
@@ -434,7 +433,7 @@ PostgreSQL:
434
433
21) Start the postmaster daemon running. Type
435
434
cd
436
435
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
438
437
account postgres). DO NOT RUN POSTMASTER FROM THE ROOT ACCOUNT.
439
438
440
439
22) If you haven't already done so, this would be a good time to modify
@@ -444,7 +443,7 @@ PostgreSQL:
444
443
Here are some suggestions on how to do this, contributed by various
445
444
users.
446
445
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
448
447
ROOT. This is why all of the examples below start by switching user
449
448
(su) to postgres. These commands also take into account the fact
450
449
that environment variables like PATH and PGDATA may not be set properly.
@@ -456,16 +455,7 @@ PostgreSQL:
456
455
su postgres -c "/usr/local/pgsql/bin/postmaster -S -D
457
456
/usr/local/pgsql/data"
458
457
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
469
459
contain the following lines and make it chmod 755 and chown
470
460
root:bin.
471
461
#!/bin/sh
@@ -478,19 +468,20 @@ PostgreSQL:
478
468
You may put the line breaks as shown above. The shell is smart
479
469
enough to keep parsing beyond end-of-line if there is an
480
470
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
482
472
other examples, this one has been tested.
483
473
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.
494
485
495
486
22a) If you haven't already done so, this would be a good time to modify
496
487
your computer to do regular maintainence. The following should be
@@ -512,7 +503,7 @@ PostgreSQL:
512
503
cd
513
504
psql -e template1 < db.out
514
505
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,
516
507
then you will need to upgrade any columns containing those types. To
517
508
do so, type (from within psql)
518
509
update YourTable set PathCol = UpgradePath(PathCol);
@@ -526,7 +517,7 @@ PostgreSQL:
526
517
syntax, but RevertPoly() is provided to reverse the effects of a
527
518
mis-applied upgrade.
528
519
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
530
521
below.
531
522
532
523
25) Clean up after yourself. Type
@@ -648,6 +639,8 @@ Ultrix4.x:
648
639
s2k-ftp.CS.Berkeley.EDU:pub/personal/andrew/libdl-1.1.tar.Z
649
640
650
641
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.
651
644
The linux-elf port installs cleanly. If you are using an
652
645
i486 processor or higher, you can edit template/linux-elf
653
646
to include "-m486" as a compiler option. configure does not
@@ -656,10 +649,10 @@ Linux:
656
649
make to include "#define HAVE_SIGSETJMP 1". Note that I have
657
650
not seen any difference in PostgreSQL behavior either way.
658
651
(Thomas G. Lockhart
659
- <Thomas.Lockhart@jpl.nasa.gov > 97/05/17 )
652
+ <lockhart@alumni.caltech.edu > 97/10/14 )
660
653
661
654
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
663
656
port. The dld library can be obtained from the sunsite linux
664
657
distributions. The current name is dld-3.2.5.
665
658
(Jalon Q. Zimmerman
0 commit comments