auto-import postgresql-7.1.3-2 from postgresql-7.1.3-2.src.rpm

This commit is contained in:
cvsdist 2004-09-09 10:37:12 +00:00
parent 6f2c3a9b14
commit 4b041776e8
3 changed files with 84 additions and 77 deletions

View File

@ -1,7 +1,8 @@
README.rpm-dist README.rpm-dist
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Version 3.6, for PostgreSQL 7.1.3 Version 3.7, for PostgreSQL 7.1.3
Lamar Owen <lamar.owen@wgcr.org> Lamar Owen <lamar.owen@wgcr.org>
Trond Eivind Glomsrød <teg@redhat.com>
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Contents: Contents:
@ -52,7 +53,7 @@ QUICKSTART
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
If this is an upgrade, please go to section 3, UPGRADING. If this is an upgrade, please go to section 3, UPGRADING.
If this is a fresh installation, simply start the postmaster using: If this is a fresh installation, simply start the postmaster using:
/etc/rc.d/init.d/postgresql start (on RedHat and TurboLinux) /etc/rc.d/init.d/postgresql start (on Red Hat Linux and TurboLinux)
On SuSE, please see the file 'README.linux' in this directory. On SuSE, please see the file 'README.linux' in this directory.
@ -72,19 +73,19 @@ CREDITS
Thomas Lockhart Thomas Lockhart
Uncle George Uncle George
Ryan Kirkpatrick Ryan Kirkpatrick
Trond Eivind Glomsrød Trond Eivind Glomsrød <teg@redhat.com>
Mark Knox Mark Knox
Mike Mascari Mike Mascari
Nicolas Huillard Nicolas Huillard
Karl DeBisschop Karl DeBisschop
Roger Luethi Roger Luethi
Jeff Johnson Jeff Johnson <jbj@redhat.com>
Reinhard Max Reinhard Max
POSTGRESQL RPM PACKAGES AND RATIONALE. POSTGRESQL RPM PACKAGES AND RATIONALE.
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
On RedHat Linux, prior to version 6.5, PostgreSQL was packaged in RPM form in On Red Hat Linux, prior to version 6.5, PostgreSQL was packaged in RPM form in
three (or four) packages: three (or four) packages:
postgresql: The server and documentation postgresql: The server and documentation
@ -118,7 +119,7 @@ postgresql-contrib: The contrib source tree, as well as selected binaries.
For SuSE Linux <= 7.0, the packages are named differently, but with the same For SuSE Linux <= 7.0, the packages are named differently, but with the same
functionality. Here is a mapping: functionality. Here is a mapping:
SuSE: RedHat: SuSE: Red Hat Linux:
----- ----------------- ----- -----------------
postgres postgresql postgres postgresql
pg_serv postgresql-server pg_serv postgresql-server
@ -134,12 +135,13 @@ There are other changes to the SuSE packages to make them conform to the
SuSE packaging standards. SuSE Linux has been shipping their own packages. SuSE packaging standards. SuSE Linux has been shipping their own packages.
While the repackaging will initially cause some confusion, it makes it While the repackaging will initially cause some confusion, it makes it
possible to set up a RedHat linux machine to be only a client -- the server possible to set up a Red Hat Linux machine to be only a client -- the
is no longer required. The clients were split out -- after all, a person who server is no longer required. The clients were split out -- after
needs the perl client may very well not need the tcl client, etc. And, the all, a person who needs the perl client may very well not need the tcl
regression tests were added to give some confidence of the suitability of client, etc. And, the regression tests were added to give some
PostgreSQL, as well as the stability of the server machine. Additionally, confidence of the suitability of PostgreSQL, as well as the stability
the regression tests can be used to help find hardware errors. of the server machine. Additionally, the regression tests can be used
to help find hardware errors.
RPM FILE LOCATIONS. RPM FILE LOCATIONS.
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
@ -152,7 +154,7 @@ subdirectories.
Different distributions have different ideas of some of these file locations. Different distributions have different ideas of some of these file locations.
In particular, the documentation directory can be /usr/doc, /usr/doc/packages, In particular, the documentation directory can be /usr/doc, /usr/doc/packages,
/usr/share/doc, /usr/share/doc/packages, or some other similar path. The /usr/share/doc, /usr/share/doc/packages, or some other similar path. The
RedHat 7 locations are listed below. On SuSE <7.1, substitute 'postgres' for Red Hat Linux 7 locations are listed below. On SuSE <7.1, substitute 'postgres' for
'postgresql' below, and 'pg_tk' for 'postgresql-tk' below. 'postgresql' below, and 'pg_tk' for 'postgresql-tk' below.
However, the RPM's install the files like this: However, the RPM's install the files like this:
@ -171,7 +173,7 @@ Other shared data: /usr/share/pgsql
Regression tests: /usr/lib/pgsql/test/regress (in the -test package) Regression tests: /usr/lib/pgsql/test/regress (in the -test package)
Documentation SGML: /usr/share/doc/postgresql-docs-x.y.z Documentation SGML: /usr/share/doc/postgresql-docs-x.y.z
The above list references the Red Hat 7.x structure. These locations may The above list references the Red Hat Linux 7.x structure. These locations may
change for other distributions. Use of 'rpm -ql' for each package is change for other distributions. Use of 'rpm -ql' for each package is
recommended as the 'Official' location source. recommended as the 'Official' location source.
@ -201,38 +203,41 @@ the binary on-disk database format changing between major versions (like
between 6.3 and 6.4). However, a change from 6.5 to 6.5.3 does not change between 6.3 and 6.4). However, a change from 6.5 to 6.5.3 does not change
the on-disk format. the on-disk format.
This property (feature, misfeature, bug, whatever) has been a known property of This property (feature, misfeature, bug, whatever) has been a known
PostgreSQL since before it was called PostgreSQL -- it has always been this property of PostgreSQL since before it was called PostgreSQL -- it has
way. However, the means by which an upgrade is performed is not readily always been this way. However, the means by which an upgrade is
performed in a fully automated fashion, as a "dump-initdb-restore" cycle has performed is not readily performed in a fully automated fashion, as a
to be performed. This doesn't appear to be too difficult -- however, dumping "dump-initdb-restore" cycle has to be performed. This doesn't appear
the old database requires the old executables -- and, if you've already done to be too difficult -- however, dumping the old database requires the
an rpm -U postgresql* (or upgraded from an older version of RedHat and didn't old executables -- and, if you've already done an rpm -U postgresql*
specifically exclude the postgresql rpms), you no longer have the older (or upgraded from an older version of Red Hat Linux and didn't
executables to dump your data. And your data is useless (until you reinstall specifically exclude the postgresql rpms), you no longer have the
the old version, that is). All RPM's prior to late releases of version 6.5. older executables to dump your data. And your data is useless (until
1 have this upgrade issue. you reinstall the old version, that is). All RPM's prior to late
releases of version 6.5. 1 have this upgrade issue.
The newest RPM's for PostgreSQL attempt to make your job in upgrading a little The newest RPM's for PostgreSQL attempt to make your job in upgrading
easier. First, during the installation of the new RPM's, a copy is made of a little easier. First, during the installation of the new RPM's, a
all the executable files and libraries necessary to make a backup of your data. copy is made of all the executable files and libraries necessary to
Second, the initialization script in the new postgresql-server package detects make a backup of your data. Second, the initialization script in the
the version of any database found -- if the version is old, then the startup new postgresql-server package detects the version of any database
of the new version is aborted. However, if no database is found, a new one found -- if the version is old, then the startup of the new version is
is made. aborted. However, if no database is found, a new one is made.
One thing must be remembered -- due to the restructuring of the PostgreSQL One thing must be remembered -- due to the restructuring of the
RPM's, you will have to manually select the postgresql-server package if you PostgreSQL RPM's, you will have to manually select the
want the server -- it is not installed by default in an upgrade. You can either postgresql-server package if you want the server -- it is not
select it during the upgrade/install, or you can mount your RedHat CD and installed by default in an upgrade. You can either select it during
the upgrade/install, or you can mount your Red Hat Linux CD and
install manually with rpm -i. install manually with rpm -i.
To facilitate upgrading, the postgresql-dump utility has been provided. Look To facilitate upgrading, the postgresql-dump utility has been
at the man page for postgresql-dump to see its usage. All executables to provided. Look at the man page for postgresql-dump to see its usage.
restore the immediately prior version of the PostgreSQL database are placed in All executables to restore the immediately prior version of the
the directory /usr/lib/pgsql/backup, and are accessed by the postgresql-dump PostgreSQL database are placed in the directory /usr/lib/pgsql/backup,
script. The directory /usr/lib/pgsql/backup is owned by the postgres user -- and are accessed by the postgresql-dump script. The directory
you can use this directory to hold dump files and preserve directories. /usr/lib/pgsql/backup is owned by the postgres user -- you can use
this directory to hold dump files and preserve directories.
The basic sequence is: The basic sequence is:
(as user postgres): (as user postgres):
@ -301,37 +306,40 @@ If tests fail, please see the file regression.diffs in that directory. If
you need help interpreting that file, contact the pgsql-ports list on you need help interpreting that file, contact the pgsql-ports list on
postgresql.org. postgresql.org.
There are some tests that will almost always fail with RedHat Linux 5.x and 6.x There are some tests that will almost always fail with Red Hat Linux
installations. The geometry, float8, and on occassion the random test will 5.x and 6.x installations. The geometry, float8, and on occassion the
fail. These failures are normal for RedHat 5.2 and 6.1. For RedHat 6.1 with random test will fail. These failures are normal for Red Hat Linux
certain i18n settings, there will be other tests fail. 5.2 and 6.1. For Red Hat Linux 6.1 with certain i18n settings, there
will be other tests fail.
For 7.1RC1, all 76 tests passed on RedHat 6.2 and RedHat 7.0. This For 7.1RC1, all 76 tests passed on Red Hat Linux 6.2 and RedHat
was accomplished by fiddling with the locale settings. In version 7.1.2 this 7.0. This was accomplished by fiddling with the locale settings. In
capability was removed -- you need to set your locale to 'C' before executing version 7.1.2 this capability was removed -- you need to set your
the first postmaster startup, or many more regression tests will fail. locale to 'C' before executing the first postmaster startup, or many
more regression tests will fail. With the locale set to 'C', all 76
tests pass on Red Hat Linux 7.1.
For interpretation of the regression tests, see the PostgreSQL documentation. For interpretation of the regression tests, see the PostgreSQL documentation.
STARTING POSTMASTER AUTOMATICALLY AT SYSTEM STARTUP STARTING POSTMASTER AUTOMATICALLY AT SYSTEM STARTUP
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
RedHat Linux uses the System V Init package. A startup script for PostgreSQL Red Hat Linux uses the System V Init system. A startup script for PostgreSQL
is provided in the server package, as /etc/rc.d/init.d/postgresql. To start is provided in the server package, as /etc/rc.d/init.d/postgresql. To start
the postmaster, with sanity checking, as root, run the postmaster, with sanity checking, as root, run "service postgresql start"
/etc/rc.d/init.d/postgresql start to shut postmaster down, "service postgresql stop"
to shut postmaster down,
/etc/rc.d/init.d/postgresql stop
There are other parameters to this script -- /etc/rc.d/init.d/postgresql for a There are other parameters to this script -- /etc/rc.d/init.d/postgresql for a
listing. listing.
To get this script to run at system startup or any time the system switches into To get this script to run at system startup or any time the system switches into
runlevels 4, 5, or 6, run 'chkconfig --add postgresql', and the proper symlinks runlevels 3, 4, or 5, run 'chkconfig --add postgresql', and the proper symlinks
will be created. Check the chkconfig man page for more information. will be created. Check the chkconfig man page for more information.
This same script also works for TurboLinux, and any other distribution similar This same script also works for TurboLinux, and any other distribution
enough to RedHat. SuSE Linux uses a different approach, using a different similar enough to Red Hat Linux. SuSE Linux uses a different
location and a different script, found at either /sbin/init.d/postgres or approach, using a different location and a different script, found at
/usr/sbin/rcpostgres. Please see the SuSE 'README.linux' for more information. either /sbin/init.d/postgres or /usr/sbin/rcpostgres. Please see the
SuSE 'README.linux' for more information.
SuSE has maintained their own RPMset for some time -- their documentation SuSE has maintained their own RPMset for some time -- their documentation
supercedes any found in this file. supercedes any found in this file.
@ -361,9 +369,9 @@ you will need to rebuild from the source RPM. Download the .src.rpm for this
release. You will need to be root to rebuild, unless you have already set up release. You will need to be root to rebuild, unless you have already set up
a non-root build environment. a non-root build environment.
Install the source RPM with rpm -i, then CD to the rpm building area (on RedHat Install the source RPM with rpm -i, then CD to the rpm building area
this is /usr/src/redhat by default). You will have to have a full development (on Red Hat Linux this is /usr/src/redhat by default). You will have
environment to rebuild the full RPM set. to have a full development environment to rebuild the full RPM set.
This release of the RPMset includes the ability to conditionally build This release of the RPMset includes the ability to conditionally build
sets of packages. The parameters, their defaults, and the meanings are: sets of packages. The parameters, their defaults, and the meanings are:

View File

@ -40,7 +40,7 @@
# Karl's fixes for some quoting issues. # Karl's fixes for some quoting issues.
# PGVERSION is: # PGVERSION is:
PGVERSION=7.1.2 PGVERSION=7.1.3
# Source function library. # Source function library.
INITD=/etc/rc.d/init.d INITD=/etc/rc.d/init.d
@ -95,17 +95,10 @@ start(){
SYSDOCDIR=/usr/share/doc/packages SYSDOCDIR=/usr/share/doc/packages
fi fi
echo echo
echo $"An old version of the database format was found.\nYou need to upgrade the data format before using PostgreSQL.\nSee $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information." echo $"An old version of the database format was found."
echo $"You need to upgrade the data format before using PostgreSQL."
echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
exit 1 exit 1
# This doesn't seem to do anything useful...
# else
# if echo "$TYPESET"|grep "declare -f success ()" >/dev/null
# then
# success "$PSQL_CHECK"
# else
# echo " [ OK ]"
# fi
# echo
fi fi
# No existing PGDATA! Initdb it. # No existing PGDATA! Initdb it.

View File

@ -15,7 +15,7 @@
# Utility feature defines. # Utility feature defines.
%{!?enable_mb:%define enable_mb 1} %{!?enable_mb:%define enable_mb 1}
%{!?pgaccess:%define pgaccess 1} %{!?pgaccess:%define pgaccess 1}
%{!?newintarray:%define newintarray 0} %{!?newintarray:%define newintarray 1}
# Python major version. # Python major version.
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')} %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
@ -44,7 +44,7 @@ Version: 7.1.3
# Pre-release RPM's should not be put up on the public ftp.postgresql.org server # Pre-release RPM's should not be put up on the public ftp.postgresql.org server
# -- only test releases or full releases should be. # -- only test releases or full releases should be.
Release: 1 Release: 2
License: BSD License: BSD
Group: Applications/Databases Group: Applications/Databases
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz
@ -948,8 +948,14 @@ rm -f perlfiles.list
%endif %endif
%changelog %changelog
* Mon Aug 20 2001 Trond Eivind Glomsrød <teg@redhat.com> 7.1.3-2
- Fix usage of "Red Hat Linux" in the README.rpm-dist, do other minor
fixes to this file
- Don't use newlines inside strings in the initscript
* Mon Aug 20 2001 Trond Eivind Glomsrød <teg@redhat.com> 7.1.3-1 * Mon Aug 20 2001 Trond Eivind Glomsrød <teg@redhat.com> 7.1.3-1
- Updated README.rpm-dist from Lamar - Updated README.rpm-dist from Lamar.
- Make sure "Red Hat" and "Red Hat Linux" are used properly in the README.rpm-dist
- Work around the horror that is perl's Makefile generation - Work around the horror that is perl's Makefile generation
(LD_RUN_PATH is not a good thing) (#51957) (LD_RUN_PATH is not a good thing) (#51957)
- 7.1.3, stable bugfix release. Remove patches from CVS as they are now included - 7.1.3, stable bugfix release. Remove patches from CVS as they are now included