Summary: | Update for PostgreSQL Guide with Section Upgrading PostgreSQL | ||
---|---|---|---|
Product: | [OLD] Docs on www.gentoo.org | Reporter: | Martin Scholz <golodhrim> |
Component: | Other documents | Assignee: | Docs Team <docs-team> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | beandog, chtekk, dev-zero, voxus |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 330927 | ||
Bug Blocks: |
Description
Martin Scholz
2009-06-06 19:14:02 UTC
Unfortunately, we cannot add this content to our document because of licensing issues. The wiki has had a history of license of license issues due to administrators and users blanket-relicensing all content many times, regardless of the limitations or specifications of the original license. Also, the source page is a clone of the original wiki, and is itself two years out-of-date, so its reliability cannot be verified. (In reply to comment #1) > Unfortunately, we cannot add this content to our document because of licensing > issues. The wiki has had a history of license of license issues due to > administrators and users blanket-relicensing all content many times, regardless > of the limitations or specifications of the original license. > > Also, the source page is a clone of the original wiki, and is itself two years > out-of-date, so its reliability cannot be verified. > Would here a totaly new writen section for the upgrade-process help? if yes let me know, because the procedure in the above section is exactly what one has to do for upgrading postgresql. If interested let me know. (In reply to comment #2) > Would here a totaly new writen section for the upgrade-process help? if yes let > me know, because the procedure in the above section is exactly what one has to > do for upgrading postgresql. If interested let me know. If you can do it without copying the wiki content, then yes! An upgrade section could be very useful. I CCed some folks who know postgresql; they can vet the upgrade section for technical accuracy. Please do reopen once you've got an upgrade chapter for us to review. We appreciate your help! I do not have a chapter, but a working way to upgrade from 8.4 to 9.0: - Install 9.0.1 (should come with regula world update) - Stop 8.4 server (/etc/init.d/postgresql-8.4 stop) - Initialaze 9.0: - eselect postgresql set-all 9.0 - emerge --config =dev-db/postgresql-server-9.0.1 - Migrate data: - su - postgres - pg_upgrade -b /usr/lib64/postgresql-8.4/bin -B /usr/lib64/postgresql-9.0/bin -d /var/lib/postgresql/8.4/data -D /var/lib/postgresql/9.0/data - exit - Migrate configuration (pg_hba.conf etc ) if required - Start new cluster: /etc/init.d/postgresql-9.0 start - Optimize db as suggested by pg_upgrade: - su - postgres - vacuumdb --all --analyze-only - Check that new cluster works as expected - Delete old 8.4 cluster data: /var/lib/postgresql/delete_old_cluster.sh - Remove old packages: emerge -C =dev-db/postgresql-base-8.4.5 =dev-db/postgresql-server-8.4.5 =virtual/postgresql-base-8.4 =virtual/postgresql-server-8.4 - Cleanup: rmdir /var/lib/postgresql/8.4 |