Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] pg_upgrade91 - You must have read and write access in the current directory
Date: Mon, 05 Dec 2011 18:00:41
Message-Id: 20111205175917.GF28855@syscon4.inet
In Reply to: Re: [gentoo-user] pg_upgrade91 - You must have read and write access in the current directory by Gregory Shearman
1 On 12/05/11 21:56, Gregory Shearman wrote:
2 >hmmm...
3 >
4 >Which directory are you running the command from? I ran mine from
5 >/var/lib/postgresql which has the properties:
6 >
7 >drwxr-xr-x 4 postgres root
8 >
9 >I don't recall using the command "pg_upgrade91", but I see that it is a
10 >symlink to /usr/lib/postgresql-9.1/bin/pg_upgrade
11 >
12 >This is the command that worked for me:
13 >
14 >pg_upgrade -u postgres -d /var/lib/postgresql/9.0/data -D \\
15 >/var/lib/postgresql/9.1/data -b /usr/lib/postgresql-9.0/bin -B \\
16 >/usr/lib/postgresql-9.1/bin
17 >
18 >For more information do (as postgres user)
19 >
20 >$ pg_upgrade --help
21 >
22 >--
23 >Regards,
24 >Gregory
25 >
26
27 I definitely wasn't in that directory I just "su postgres" and run the command.
28
29 I just recreate the databases by hand and populated them with backup data.
30
31 --
32 Joseph