public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] pg_upgrade from 9.0.5 to 9.1.1
@ 2011-11-13  5:31 Michael George
  2011-11-13  5:40 ` Pandu Poluan
  2011-11-13  5:41 ` Michael George
  0 siblings, 2 replies; 3+ messages in thread
From: Michael George @ 2011-11-13  5:31 UTC (permalink / raw
  To: gentoo-user

I am trying to upgrade my postgresql server from 9.0 to 9.1.  I've
installed 9.1.1 and used eselect to make it the slot to run for the
system.

When I run:
pg_upgrade -v --check -d /var/lib/postgresql/9.0/data -D \
/var/lib/postgresql/9.1/data -b /usr/lib64/postgresql-9.0/bin -B \
/usr/lib64/postgresql-9.1/bin

I get:
Running in verbose mode
Performing Consistency Checks
-----------------------------
Checking current, bin, and data directories                 ok
Checking cluster versions                                   ok
"/usr/lib64/postgresql-9.0/bin/pg_ctl" -w -l "/dev/null" -D
"/var/lib/postgresql/9.0/data" -o "-p 5432 -c autovacuum=off -c
autovacuum_freeze_max_age=2000000000" start >> "/dev/null" 2>&1

When I run that command manually and send the output to a logfile, it
appears that it's trying to find postgresql's *.conf files in the data
directory rather than in /etc/postgresql-9.0.  I don't see a way to
specify the location of the conf files separate from the data files.

How do I proceed?

-- 
-Michael

Rident stolidi verba Latina.
                        -Ovid



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] pg_upgrade from 9.0.5 to 9.1.1
  2011-11-13  5:31 [gentoo-user] pg_upgrade from 9.0.5 to 9.1.1 Michael George
@ 2011-11-13  5:40 ` Pandu Poluan
  2011-11-13  5:41 ` Michael George
  1 sibling, 0 replies; 3+ messages in thread
From: Pandu Poluan @ 2011-11-13  5:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

On Nov 13, 2011 12:35 PM, "Michael George" <george@mutualdata.com> wrote:
>
> I am trying to upgrade my postgresql server from 9.0 to 9.1.  I've
> installed 9.1.1 and used eselect to make it the slot to run for the
> system.
>
> When I run:
> pg_upgrade -v --check -d /var/lib/postgresql/9.0/data -D \
> /var/lib/postgresql/9.1/data -b /usr/lib64/postgresql-9.0/bin -B \
> /usr/lib64/postgresql-9.1/bin
>
> I get:
> Running in verbose mode
> Performing Consistency Checks
> -----------------------------
> Checking current, bin, and data directories                 ok
> Checking cluster versions                                   ok
> "/usr/lib64/postgresql-9.0/bin/pg_ctl" -w -l "/dev/null" -D
> "/var/lib/postgresql/9.0/data" -o "-p 5432 -c autovacuum=off -c
> autovacuum_freeze_max_age=2000000000" start >> "/dev/null" 2>&1
>
> When I run that command manually and send the output to a logfile, it
> appears that it's trying to find postgresql's *.conf files in the data
> directory rather than in /etc/postgresql-9.0.  I don't see a way to
> specify the location of the conf files separate from the data files.
>
> How do I proceed?
>

I'm not (yet) well-versed in postgresql, but have you tried creating
symlinks?

Rgds,

[-- Attachment #2: Type: text/html, Size: 1646 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] pg_upgrade from 9.0.5 to 9.1.1
  2011-11-13  5:31 [gentoo-user] pg_upgrade from 9.0.5 to 9.1.1 Michael George
  2011-11-13  5:40 ` Pandu Poluan
@ 2011-11-13  5:41 ` Michael George
  1 sibling, 0 replies; 3+ messages in thread
From: Michael George @ 2011-11-13  5:41 UTC (permalink / raw
  To: gentoo-user

On Sun, Nov 13, 2011 at 12:31:58AM -0500, Michael George wrote:
> I am trying to upgrade my postgresql server from 9.0 to 9.1.  I've
> installed 9.1.1 and used eselect to make it the slot to run for the
> system.
> 
> When I run:
> pg_upgrade -v --check -d /var/lib/postgresql/9.0/data -D \
> /var/lib/postgresql/9.1/data -b /usr/lib64/postgresql-9.0/bin -B \
> /usr/lib64/postgresql-9.1/bin
> 
> I get:
> Running in verbose mode
> Performing Consistency Checks
> -----------------------------
> Checking current, bin, and data directories                 ok
> Checking cluster versions                                   ok
> "/usr/lib64/postgresql-9.0/bin/pg_ctl" -w -l "/dev/null" -D
> "/var/lib/postgresql/9.0/data" -o "-p 5432 -c autovacuum=off -c
> autovacuum_freeze_max_age=2000000000" start >> "/dev/null" 2>&1
> 
> When I run that command manually and send the output to a logfile, it
> appears that it's trying to find postgresql's *.conf files in the data
> directory rather than in /etc/postgresql-9.0.  I don't see a way to
> specify the location of the conf files separate from the data files.
> 
> How do I proceed?

According to:
http://archives.postgresql.org/pgsql-hackers/2011-09/msg01482.php

The normal workaround is to make symlinks and delete them after the
pg_upgrade.  It appears they might implement a solution, but it isn't in
place for 9.1.  :(

-- 
-M

Rident stolidi verba Latina.
                        -Ovid



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-13  5:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-13  5:31 [gentoo-user] pg_upgrade from 9.0.5 to 9.1.1 Michael George
2011-11-13  5:40 ` Pandu Poluan
2011-11-13  5:41 ` Michael George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox