diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2011-08-08 06:57:59 -0400 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2011-08-08 06:57:59 -0400 |
commit | 6a13c5d726fb9b5b38beb27776f15b879a4e1030 (patch) | |
tree | f048070b47f681edd5ae1171c2047b394efac5a1 | |
parent | Patched changes from David Abbott. (diff) | |
download | patches-documentation.tar.gz patches-documentation.tar.bz2 patches-documentation.zip |
Fixed pg_upgrade instructionsdocumentation
-rw-r--r-- | postgresql.xml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/postgresql.xml b/postgresql.xml index ae1d8e5..a612099 100644 --- a/postgresql.xml +++ b/postgresql.xml @@ -670,13 +670,19 @@ instructions. # <i>ln -s /etc/postgresql-8.4/*.conf /var/lib/postgresql/8.4/data/</i> # <i>ln -s /etc/postgresql-9.0/*.conf /var/lib/postgresql/9.0/data/</i> -<comment>(Change the method of 'postgres' to trust on local connections)</comment> +<comment>(Change the method of database user 'postgres' to trust on local +connections on all databases.)</comment> # <i>nano -w /etc/postgresql-8.4/pg_hba.conf</i> # <i>nano -w /etc/postgresql-9.0/pg_hba.conf</i> -# <i>pg_upgrade -u postgres \ - -d /var/lib/postgresql/8.4/data -D /var/lib/postgresql/9.0 \ + +<comment>You may need to change the permissions of '/var/lib/postgresql/' before +you perform the next step.</comment> +# <i>su - postgres</i> +$ <i>pg_upgrade -u postgres \ + -d /var/lib/postgresql/8.4/data -D /var/lib/postgresql/9.0/data \ -b /usr/lib/postgresql-8.4/bin -B /usr/lib/postgresql-9.0/bin</i> -<comment>(Perform the tasks pg_upgrade tells you to.)</comment> +<comment>(Perform the tasks pg_upgrade tells you to do , if any.)</comment> +$ <i>logout</i> <comment>(Remove the symbolic links we created earlier.)</comment> # <i>rm /var/lib/postgresql/8.4/data/*.conf</i> |