⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.rpm-dist

📁 opennms得相关源码 请大家看看
💻 RPM-DIST
📖 第 1 页 / 共 2 页
字号:
README.rpm-dist-----------------------------------------------------------------------------Version 3.6, for PostgreSQL 7.1.3Lamar Owen <lamar.owen@wgcr.org> -----------------------------------------------------------------------------Contents: 0.)	Quickie -i note. 1.)	Introduction, QuickStart, and credits 2.)	PostgreSQL RPM packages and rationale 3.)	Upgrading from an older version of PostgreSQL without losing data. 4.)	Regression Testing 5.)	Starting postmaster automatically on startup 6.)	Grand Unified Configuration(GUC) File. 7.)	Rebuilding the source RPM. 8.)	Contrib files. 9.)	Logging set up10.)	Further Information ResourceQUICKIE '-i' NOTE-----------------------------------------------------------------------------The postmaster '-i' option is NOT used by default in the initscript shippedwith these RPMs.  Please do NOT modify the initscript to add the '-i' backin -- it will get overwritten on the next package upgrade.  Rather, see thesection below on the Grand Unified Configuration file, which includes therecommended way to get '-i' functionality back.INTRODUCTION-----------------------------------------------------------------------------This document exists to explain the layout of the RPM's for PostgreSQL, to explain how to migrate from an older version, and to explain WHY it can beso difficult to upgrade PostgreSQL.This document is written to be applicable to version 7.1.2 of PostgreSQL, which is the current version of the RPM's as of this writing.Official PostgreSQL Global Development Group RPM's will from version 7.1.2on carry a 'PGDG' after the release number.  Other RPMset's as distributedwith Linux distributions may have a different release number and initials.It is preferable for the distribution-specific set to be the one used, asthe PGDG set is intentionally generic.  So, if your distro has a set of RPMs,use them in preference.  If you want to stay up-to-date on the PostgreSQLcore itself, use the PGDG generic set -- but understand that it is a GENERIC set.These RPMs are designed to be LSB-compliant -- if you find this not to be thecase, please let me know by way of the pgsql-ports@postgresql.org mailinglist.QUICKSTART-----------------------------------------------------------------------------If this is an upgrade, please go to section 3, UPGRADING.If this is a fresh installation, simply start the postmaster using: /etc/rc.d/init.d/postgresql start  (on RedHat and TurboLinux)On SuSE, please see the file 'README.linux' in this directory.The file /var/lib/pgsql/.bash_profile is now packaged to help with the setting of environment variables. You may edit this file, and it won't beoverwritten during an upgrade.  However, enhancements and bugfixes may be addedto this file, so be sure to check .bash_profile.rpmnew after upgrading.The user 'postgres' is created during installation of the server subpackage.This user by default is UID and GID 26. The user has the default shell set tobash, and the home directory set to /var/lib/pgsql.  This user also has nodefault password -- in order to be able to su to from a non-root accountor login as 'postgres' you will need to set a password using passwd.CREDITS-----------------------------------------------------------------------------Thomas LockhartUncle GeorgeRyan KirkpatrickTrond Eivind Glomsr鴇Mark KnoxMike MascariNicolas HuillardKarl DeBisschopRoger LuethiJeff JohnsonReinhard MaxPOSTGRESQL RPM PACKAGES AND RATIONALE.-----------------------------------------------------------------------------On RedHat Linux, prior to version 6.5, PostgreSQL was packaged in RPM form inthree (or four) packages:postgresql:		The server and documentationpostgresql-clients:	The client libraries, the cli, and the tcl interfacepostgresql-devel:	Development libraries (for the client-side)postgresql-data:	A sample database -- not shipped with the 6.4 RPMS.However, it was decided that a different split would be more appropriate forusers.  The 7.0 splitup allows more flexibility in installation, as well asmaking the new clients into their own packages.  The new packages are:postgresql:		Some clients and libraries, and documentationpostgresql-server:	Server executables and data filespostgresql-devel:	Client-side development librariespostgresql-tcl:		TCL/TK client libraries and the pgaccess clientpostgresql-perl:	PERL client modulepostgresql-python:	The PygreSQL client librarypostgresql-odbc:	Linux ODBC client (not required to use ODBC from Win95)postgresql-jdbc:	JAR of the JDBC clientpostgresql-test:	The regression tests and associated files.For version 7.0.x, another package is being shipped, and one package has beentrimmed:postgresql-tk:		Tk client and pgaccess.postgresql-tcl:		Tcl client and PL ONLY.For version 7.1, more packages are being shipped:postgresql-libs:	client shared libraries.postgresql-docs:	extra documentation,such as the SGML doc sources.postgresql-contrib:	The contrib source tree, as well as selected binaries.For SuSE Linux <= 7.0, the packages are named differently, but with the samefunctionality.  Here is a mapping:SuSE:			RedHat:-----			-----------------postgres		postgresqlpg_serv			postgresql-serverpg_devel		postgresql-develpg_tcl			postgresql-tclpg_perl			postgresql-perlpg_pyth			postgresql-pythonpg_odbc			postgresql-odbcpg_jdbc			postgresql-jdbcpg_test			postgresql-testThere are other changes to the SuSE packages to make them conform to theSuSE packaging standards.  SuSE Linux has been shipping their own packages.While the repackaging will initially cause some confusion, it makes itpossible  to set up a RedHat linux machine to be only a client -- the serveris no longer required.  The clients were split out -- after all, a person whoneeds the perl client may very well not need the tcl client, etc.  And, theregression tests were added to give some confidence of the suitability ofPostgreSQL, as well as the stability of the server machine.  Additionally,the regression tests can be used to help find hardware errors.RPM FILE LOCATIONS.-----------------------------------------------------------------------------In compliance with the Linux FHS, the PostgreSQL RPM's install files in a mannernot consistent with most of the PostgreSQL documentation.  According to thestandard PostgreSQL documentation, PostgreSQL is installed under the directory/usr/local/pgsql, with executables, source, and data existing in various subdirectories.Different distributions have different ideas of some of these file locations.In particular, the documentation directory can be /usr/doc, /usr/doc/packages,/usr/share/doc, /usr/share/doc/packages, or some other similar path.  TheRedHat 7 locations are listed below. On SuSE <7.1, substitute 'postgres' for 'postgresql' below, and 'pg_tk' for 'postgresql-tk' below.However, the RPM's install the files like this:Executables:		/usr/binLibaries:		/usr/libDocumentation:		/usr/share/doc/postgresql-x.y.zContrib:		/usr/share/doc/postgresql-x.y.z/contribSource:			not installedData:			/var/lib/pgsql/dataBackup area:		/var/lib/pgsql/backupTemplates:		/usr/share/pgsqlProcedural Languages:	/usr/lib/pgsqlTK client docs:		/usr/share/doc/postgresql-tk-x.y.zDevelopment Headers:	/usr/include/pgsqlOther shared data:	/usr/share/pgsqlRegression tests:	/usr/lib/pgsql/test/regress  (in the -test package)Documentation SGML:	/usr/share/doc/postgresql-docs-x.y.zThe above list references the Red Hat 7.x structure.  These locations may change for other distributions.  Use of 'rpm -ql' for each package isrecommended as the 'Official' location source.While it may seem gratuitous to place these files in different locations, theFHS requires it -- distributions should not ever touch /usr/local.  It mayalso seem like more work to keep track of where everything is -- but, that'sthe beauty of RPM -- you don't have to keep track of the files, RPM does itfor you.UPGRADING.-----------------------------------------------------------------------------CAUTION: While a semi-automatic upgrade process has been implemented, it isSTRONGLY recommended that a full dump of your database (using pg_dumpall) isperformed BEFORE upgrading the RPMs!  If you have already done the upgradewith the RPM, and want to return to your previous version to do the dump,find the old RPM's and use 'rpm -U --oldpackage' to downgrade.NOTE: moving your existing data from /var/lib/pgsql to /var/lib/pgsql/data isnot currently automatic -- you will need to do this yourself at this release!This change occurred between 6.5.3 and 7.0, so upgrading from priot to 7.0 to7.0 or later might be difficult.  The rh-dump script is provided to ease this,see below.The single biggest problem with upgrading PostgreSQL RPM's has been the lack of a reasonably automated upgrade process.  PostgreSQL has the property of 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 the on-disk format.This property (feature, misfeature, bug, whatever) has been a known property ofPostgreSQL since before it was called PostgreSQL -- it has always been thisway.  However, the means by which an upgrade is performed is not readily performed in a fully automated fashion, as a "dump-initdb-restore" cycle hasto be performed. This doesn't appear to be too difficult -- however, dumpingthe old database requires the old executables -- and, if you've already donean rpm -U postgresql* (or upgraded from an older version of RedHat and didn'tspecifically exclude the postgresql rpms), you no longer have the older executables to dump your data. And your data is useless (until you reinstallthe 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 littleeasier.  First, during the installation of the new RPM's, a copy is made ofall the executable files and libraries necessary to make a backup of your data.Second, the initialization script in the new postgresql-server package detects

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -