diff options
author | asau <asau@pkgsrc.org> | 2010-12-10 11:53:07 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2010-12-10 11:53:07 +0000 |
commit | f129c6718598254c64ef0d593bc70fea176ac4d9 (patch) | |
tree | 59c19952f01cbe04e152b957185b64127c39f5ef | |
parent | d203b9cf04d8c1425472e4f413e60c0112f24882 (diff) | |
download | pkgsrc-f129c6718598254c64ef0d593bc70fea176ac4d9.tar.gz |
Import PostgreSQL 9.0 binary upgrade tool as databases/postgresql90-upgrade
pg_upgrade (formerly called pg_migrator) allows data stored
in PostgreSQL data files to be migrated to a later PostgreSQL
major version without the data dump/reload typically required
for major version upgrades, e.g. from 8.4.7 to the current
major release of PostgreSQL. It is not required for minor
version upgrades, e.g. from 9.0.1 to 9.0.4.
-rw-r--r-- | databases/postgresql90-upgrade/DESCR | 14 | ||||
-rw-r--r-- | databases/postgresql90-upgrade/Makefile | 19 | ||||
-rw-r--r-- | databases/postgresql90-upgrade/PLIST | 2 |
3 files changed, 35 insertions, 0 deletions
diff --git a/databases/postgresql90-upgrade/DESCR b/databases/postgresql90-upgrade/DESCR new file mode 100644 index 00000000000..18267e4ba9a --- /dev/null +++ b/databases/postgresql90-upgrade/DESCR @@ -0,0 +1,14 @@ +pg_upgrade (formerly called pg_migrator) allows data stored +in PostgreSQL data files to be migrated to a later PostgreSQL +major version without the data dump/reload typically required +for major version upgrades, e.g. from 8.4.7 to the current +major release of PostgreSQL. It is not required for minor +version upgrades, e.g. from 9.0.1 to 9.0.4. + +pg_upgrade works because, though new features are regularly +added to PostgreSQL major releases, the internal data storage +format rarely changes. pg_upgrade does its best to make sure the +old and new clusters are binary-compatible, e.g. by checking for +compatible compile-time settings, including 32/64-bit binaries. +It is important that any external modules are also binary +compatible, though this cannot be checked by pg_upgrade. diff --git a/databases/postgresql90-upgrade/Makefile b/databases/postgresql90-upgrade/Makefile new file mode 100644 index 00000000000..c058346018d --- /dev/null +++ b/databases/postgresql90-upgrade/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/12/10 11:53:07 asau Exp $ + +PKGNAME= postgresql90-upgrade-${BASE_VERS} +COMMENT= PostgreSQL binary upgrade tool +MAINTAINER= pkgsrc-users@NetBSD.org + +PKG_DESTDIR_SUPPORT= user-destdir + +DEPENDS+= postgresql90-server>=${BASE_VERS}:../../databases/postgresql90-server + +.include "../../databases/postgresql90/Makefile.common" + +BUILD_DIRS+= contrib/pg_upgrade + +LIBS.SunOS+= -lintl + +.include "../../databases/postgresql90-client/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/postgresql90-upgrade/PLIST b/databases/postgresql90-upgrade/PLIST new file mode 100644 index 00000000000..f196b24c882 --- /dev/null +++ b/databases/postgresql90-upgrade/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/12/10 11:53:07 asau Exp $ +${PG_SUBPREFIX}bin/pg_upgrade |