Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9acf938c
Commit
9acf938c
authored
Oct 15, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small updates for v6.2.1.
parent
ed00f1a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
48 deletions
+41
-48
INSTALL
INSTALL
+41
-48
No files found.
INSTALL
View file @
9acf938c
...
@@ -11,14 +11,13 @@ compliant, but with each release it gets closer.
...
@@ -11,14 +11,13 @@ compliant, but with each release it gets closer.
PostgreSQL, formerly called Postgres95, is a derivative of Postgres 4.2
PostgreSQL, formerly called Postgres95, is a derivative of Postgres 4.2
(the last release of the UC Berkeley research project). For copyright
(the last release of the UC Berkeley research project). For copyright
terms for PostgreSQL, please see the file named COPYRIGHT. This version
terms for PostgreSQL, please see the file named COPYRIGHT. This version
was developed by a team of developers on the postgres developers mailing
was developed by a team of developers on the Postgres developers mailing
list. Version 1 (through 1.01) was developed by Jolly Chen and Andrew
list. Version 1 (through 1.01) was developed by Jolly Chen and Andrew Yu.
Yu.
The installation notes below assume the following (except where noted):
The installation notes below assume the following (except where noted):
- Commands are Unix-compatible. See note below.
- Commands are Unix-compatible. See note below.
- Defaults are used except where noted.
- Defaults are used except where noted.
- User postgres is the
p
ostgres superuser.
- User postgres is the
P
ostgres superuser.
- The source path is /usr/src/pgsql (other paths are possible).
- The source path is /usr/src/pgsql (other paths are possible).
- The runtime path is /usr/local/pgsql (other paths are possible).
- The runtime path is /usr/local/pgsql (other paths are possible).
...
@@ -111,8 +110,8 @@ PostgreSQL:
...
@@ -111,8 +110,8 @@ PostgreSQL:
To check for disk space, use command "df -k".
To check for disk space, use command "df -k".
4) Ftp file ftp://ftp.postgresql.org/pub/postgresql-v6.2.tar.gz from the
4) Ftp file ftp://ftp.postgresql.org/pub/postgresql-v6.2.
1.
tar.gz from the
i
nternet. Store it in your home directory.
I
nternet. Store it in your home directory.
5) Some platforms use flex. If your system uses flex then make sure
5) Some platforms use flex. If your system uses flex then make sure
you have a good version. Type
you have a good version. Type
...
@@ -146,14 +145,15 @@ PostgreSQL:
...
@@ -146,14 +145,15 @@ PostgreSQL:
/usr/bin/flex++ which points to flex.
/usr/bin/flex++ which points to flex.
6) If you are upgrading an existing system then back up your database.
6) If you are upgrading an existing system then back up your database.
The database format is liable to change every few weeks with no
For alpha- and beta-level releases, the database format is liable
notice besides a quick comment in the HACKERS mailing list. It is
to change often every few weeks with no notice besides a quick comment
therefore a bad idea to skip this step. Also, do not use the
in the HACKERS mailing list. Full releases always require a dump/reload
pg_dumpall script from v6.0 or everything will be owned by the
from previous releases. It is therefore a bad idea to skip this
postgres super user. Type (with the gunzip line and the following
step. Also, do not use the pg_dumpall script from v6.0 or everything
line typed as one line):
will be owned by the Postgres super user. Type (with the gunzip line
and the following line typed as one line):
cd
cd
gunzip -c postgresql-v6.2.tar.gz |
gunzip -c postgresql-v6.2.
1.
tar.gz |
tar xvf - src/bin/pg_dump/pg_dumpall
tar xvf - src/bin/pg_dump/pg_dumpall
chmod a+x src/bin/pg_dump/pg_dumpall
chmod a+x src/bin/pg_dump/pg_dumpall
src/bin/pg_dump/pg_dumpall > db.out
src/bin/pg_dump/pg_dumpall > db.out
...
@@ -218,7 +218,7 @@ PostgreSQL:
...
@@ -218,7 +218,7 @@ PostgreSQL:
10) Unzip and untar the new source file. Type
10) Unzip and untar the new source file. Type
cd /usr/src/pgsql
cd /usr/src/pgsql
gunzip -c ~/postgresql-v6.2.tar.gz | tar xvf -
gunzip -c ~/postgresql-v6.2.
1.
tar.gz | tar xvf -
11) Configure the source code for your system. It is this step at which
11) Configure the source code for your system. It is this step at which
you can specify your actual source path and installation paths for
you can specify your actual source path and installation paths for
...
@@ -378,7 +378,7 @@ PostgreSQL:
...
@@ -378,7 +378,7 @@ PostgreSQL:
cd
cd
nohup postmaster > regress.log 2>&1 &
nohup postmaster > regress.log 2>&1 &
Run postmaster from your
p
ostgres super user account (typically
Run postmaster from your
P
ostgres super user account (typically
account postgres). DO NOT RUN POSTMASTER FROM THE ROOT ACCOUNT.
account postgres). DO NOT RUN POSTMASTER FROM THE ROOT ACCOUNT.
19) Run the regression tests. Type
19) Run the regression tests. Type
...
@@ -404,12 +404,11 @@ PostgreSQL:
...
@@ -404,12 +404,11 @@ PostgreSQL:
platform, etc. "Failures" of this type do not indicate a problem with
platform, etc. "Failures" of this type do not indicate a problem with
PostgreSQL.
PostgreSQL.
Here is an example from a i686/Linux-ELF platform (this is the platform
For a i686/Linux-ELF platform, no tests failed since this is the
on which most of the regression tests were generated). No tests failed
v6.2.1 regression testing reference platform.
since this is the v6.2 regression reference platform.
Here is an example from the SPARC/Linux-ELF platform. Using the
For the SPARC/Linux-ELF platform, using the 970525 beta version of
970525 beta version of PostgreSQL v6.2 the following tests "failed".
PostgreSQL v6.2 the following tests "failed":
float8 and geometry "failed" due to minor precision differences in
float8 and geometry "failed" due to minor precision differences in
floating point numbers. select_views produces massively different output,
floating point numbers. select_views produces massively different output,
but the differences are due to minor floating point differences.
but the differences are due to minor floating point differences.
...
@@ -418,7 +417,7 @@ PostgreSQL:
...
@@ -418,7 +417,7 @@ PostgreSQL:
the differences and then decide if those differences will affect your
the differences and then decide if those differences will affect your
intended use of PostgreSQL. However, keep in mind that this is likely
intended use of PostgreSQL. However, keep in mind that this is likely
to be the most solid release of PostgreSQL to date, incorporating many
to be the most solid release of PostgreSQL to date, incorporating many
bug fixes from v6.
0
, and that previous versions of PostgreSQL have been
bug fixes from v6.
1
, and that previous versions of PostgreSQL have been
in use successfully for some time now.
in use successfully for some time now.
After running the tests, type
After running the tests, type
...
@@ -434,7 +433,7 @@ PostgreSQL:
...
@@ -434,7 +433,7 @@ PostgreSQL:
21) Start the postmaster daemon running. Type
21) Start the postmaster daemon running. Type
cd
cd
nohup postmaster > server.log 2>&1 &
nohup postmaster > server.log 2>&1 &
Run postmaster from your
p
ostgres super user account (typically
Run postmaster from your
P
ostgres super user account (typically
account postgres). DO NOT RUN POSTMASTER FROM THE ROOT ACCOUNT.
account postgres). DO NOT RUN POSTMASTER FROM THE ROOT ACCOUNT.
22) If you haven't already done so, this would be a good time to modify
22) If you haven't already done so, this would be a good time to modify
...
@@ -444,7 +443,7 @@ PostgreSQL:
...
@@ -444,7 +443,7 @@ PostgreSQL:
Here are some suggestions on how to do this, contributed by various
Here are some suggestions on how to do this, contributed by various
users.
users.
Whatever you do, postmaster must be run by user postgres
,
AND NOT BY
Whatever you do, postmaster must be run by user postgres AND NOT BY
ROOT. This is why all of the examples below start by switching user
ROOT. This is why all of the examples below start by switching user
(su) to postgres. These commands also take into account the fact
(su) to postgres. These commands also take into account the fact
that environment variables like PATH and PGDATA may not be set properly.
that environment variables like PATH and PGDATA may not be set properly.
...
@@ -456,16 +455,7 @@ PostgreSQL:
...
@@ -456,16 +455,7 @@ PostgreSQL:
su postgres -c "/usr/local/pgsql/bin/postmaster -S -D
su postgres -c "/usr/local/pgsql/bin/postmaster -S -D
/usr/local/pgsql/data"
/usr/local/pgsql/data"
b) In RedHat v4.0 Linux edit file /etc/inittab to contain the
b) In FreeBSD 2.2-RELEASE edit /usr/local/etc/rc.d/pgsql.sh to
following single line:
pg:2345:respawn:/bin/su - postgres -c
"/usr/local/pgsql/bin/postmaster -D/usr/local/pgsql/data
>> /usr/local/pgsql/server.log 2>&1" /dev/null
(The author of this example says this example will revive the
postmaster if it dies, but he doesn't know if there are other side
effects.)
c) In FreeBSD 2.2-RELEASE edit /usr/local/etc/rc.d/pgsql.sh to
contain the following lines and make it chmod 755 and chown
contain the following lines and make it chmod 755 and chown
root:bin.
root:bin.
#!/bin/sh
#!/bin/sh
...
@@ -478,19 +468,20 @@ PostgreSQL:
...
@@ -478,19 +468,20 @@ PostgreSQL:
You may put the line breaks as shown above. The shell is smart
You may put the line breaks as shown above. The shell is smart
enough to keep parsing beyond end-of-line if there is an
enough to keep parsing beyond end-of-line if there is an
expression unfinished. The exec saves one layer of shell under
expression unfinished. The exec saves one layer of shell under
the postmaster process so the parent is init. Note: Unlike
the
the postmaster process so the parent is init. Note: Unlike
most
other examples, this one has been tested.
other examples, this one has been tested.
d) In RedHat v4.0 Linux create file /etc/rc.d/init.d/postgres.init to
c) In RedHat v4.0 Linux edit file /etc/inittab to contain the
contain the following single line:
following single line:
su -c "cd ~postgres; nohup /usr/local/pgsql/bin/postmaster
pg:2345:respawn:/bin/su - postgres -c
-D /usr/local/pgsql/data > server.log 2>&1 &" postgres
"/usr/local/pgsql/bin/postmaster -D/usr/local/pgsql/data
Next, type the following:
>> /usr/local/pgsql/server.log 2>&1" /dev/null
cd /etc/rc3.d
(The author of this example says this example will revive the
ln -s ../init.d/postgres.init S1000postgres
postmaster if it dies, but he doesn't know if there are other side
Change "1000" to a number of your choice to indicate the
effects.)
loading order of the various programs pointed to in directory
/etc/rc3.d. (Note that this example has not been tested yet.)
d) The contrib/linux area of the PostgreSQL distribution has an example
init.d script compatible with and tested using recent RedHat packages.
22a) If you haven't already done so, this would be a good time to modify
22a) If you haven't already done so, this would be a good time to modify
your computer to do regular maintainence. The following should be
your computer to do regular maintainence. The following should be
...
@@ -512,7 +503,7 @@ PostgreSQL:
...
@@ -512,7 +503,7 @@ PostgreSQL:
cd
cd
psql -e template1 < db.out
psql -e template1 < db.out
If your
old
database uses either path or polygon geometric data types,
If your
pre-v6.2
database uses either path or polygon geometric data types,
then you will need to upgrade any columns containing those types. To
then you will need to upgrade any columns containing those types. To
do so, type (from within psql)
do so, type (from within psql)
update YourTable set PathCol = UpgradePath(PathCol);
update YourTable set PathCol = UpgradePath(PathCol);
...
@@ -526,7 +517,7 @@ PostgreSQL:
...
@@ -526,7 +517,7 @@ PostgreSQL:
syntax, but RevertPoly() is provided to reverse the effects of a
syntax, but RevertPoly() is provided to reverse the effects of a
mis-applied upgrade.
mis-applied upgrade.
24) If you are a new user, you may wish to play with
p
ostgres as described
24) If you are a new user, you may wish to play with
P
ostgres as described
below.
below.
25) Clean up after yourself. Type
25) Clean up after yourself. Type
...
@@ -648,6 +639,8 @@ Ultrix4.x:
...
@@ -648,6 +639,8 @@ Ultrix4.x:
s2k-ftp.CS.Berkeley.EDU:pub/personal/andrew/libdl-1.1.tar.Z
s2k-ftp.CS.Berkeley.EDU:pub/personal/andrew/libdl-1.1.tar.Z
Linux:
Linux:
A linux-2.0.30/libc-5.3.12/RedHat-4.2 running on a dual processor
i686 is the regression testing reference machine.
The linux-elf port installs cleanly. If you are using an
The linux-elf port installs cleanly. If you are using an
i486 processor or higher, you can edit template/linux-elf
i486 processor or higher, you can edit template/linux-elf
to include "-m486" as a compiler option. configure does not
to include "-m486" as a compiler option. configure does not
...
@@ -656,10 +649,10 @@ Linux:
...
@@ -656,10 +649,10 @@ Linux:
make to include "#define HAVE_SIGSETJMP 1". Note that I have
make to include "#define HAVE_SIGSETJMP 1". Note that I have
not seen any difference in PostgreSQL behavior either way.
not seen any difference in PostgreSQL behavior either way.
(Thomas G. Lockhart
(Thomas G. Lockhart
<
Thomas.Lockhart@jpl.nasa.gov> 97/05/17
)
<
lockhart@alumni.caltech.edu> 97/10/14
)
For non-ELF Linux, the dld library MUST be obtained and installed on
For non-ELF Linux, the dld library MUST be obtained and installed on
the system. It enables dynamic link loading capability to the
p
ostgres
the system. It enables dynamic link loading capability to the
P
ostgres
port. The dld library can be obtained from the sunsite linux
port. The dld library can be obtained from the sunsite linux
distributions. The current name is dld-3.2.5.
distributions. The current name is dld-3.2.5.
(Jalon Q. Zimmerman
(Jalon Q. Zimmerman
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment