pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_upgrade question
3+ messages / 3 participants
[nested] [flat]
* pg_upgrade question
@ 2016-08-11 19:02 Mark Steben <mark.steben@drivedominion.com>
0 siblings, 1 reply; 3+ messages in thread
From: Mark Steben @ 2016-08-11 19:02 UTC (permalink / raw)
To: pgsql-admin
Good afternoon,
I am hoping to use pg_upgrade with the link option to upgrade from 9.2 to
9.4.
We run redhat linux
This is the current configuration:
There is one set of binaries:
/usr/local/postgresql-9.2.5 >>> upgrade to >>>
/usr/local/postgresql-9.4.8.
However there are *three *sets of data clusters. All on different disks -
same file structure. They are on the same physical machine but referenced
by different i/ps and have to be referenced to different hosts:
first data cluster:
/postgres_data/legacy/PSQL_92 >> upgrade to >>
/postgres_data/legacy/PSQL_94
to reference this at the command line within linux
psql -U <<rolename?>> << database>> -h prod-legacy-psql.server.int
second data cluster
/postgres_data/prime/PSQL_92 >> upgrade to>> /postgres_data/prime/PSQL_94
to reference this at the command line within linux
psql -U <<rolename?>> << database>> -h prod-prime-psql.server.int
third data cluster:
/postgres_data/autoscheduler/PSQL_92 >> upgrade to>>
/postgres_data/autoscheduler/PSQL_94
to reference this at the command line within linux
psql -U <<rolename?>> << database>> -h prod-autoscheduler-psql.
server.int
Is this possible using pg_upgrade? From the documentation it looks like
there is a one-to-one correlation between the binaries and the data cluster
- I don't see a 'multiple' option.
Thanks for your time.
--
*Mark Steben*
Database Administrator
@utoRevenue <http://www.autorevenue.com/; | Autobase
<http://www.autobase.net/;
CRM division of Dominion Dealer Solutions
95D Ashley Ave.
West Springfield, MA 01089
t: 413.327-3045
f: 413.383-9567
www.fb.com/DominionDealerSolutions
www.twitter.com/DominionDealer
www.drivedominion.com <http://www.autorevenue.com/;
<http://autobasedigital.net/marketing/DD12_sig.jpg;
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg_upgrade question
@ 2016-08-11 19:43 Tom Lane <tgl@sss.pgh.pa.us>
parent: Mark Steben <mark.steben@drivedominion.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2016-08-11 19:43 UTC (permalink / raw)
To: Mark Steben <mark.steben@drivedominion.com>; +Cc: pgsql-admin
Mark Steben <mark.steben@drivedominion.com> writes:
> I am hoping to use pg_upgrade with the link option to upgrade from 9.2 to
> 9.4.
> There is one set of binaries:
> However there are *three *sets of data clusters.
> Is this possible using pg_upgrade?
As far as pg_upgrade is concerned, you'd just run it three times, once per
data cluster.
If you're trying to use it through some distro-provided wrapper script,
it's possible that that would be difficult, but the paths you mention
sound pretty homebrew so I'm guessing that that's not a problem.
regards, tom lane
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg_upgrade question
@ 2016-08-23 20:20 Bruce Momjian <bruce@momjian.us>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Momjian @ 2016-08-23 20:20 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Mark Steben <mark.steben@drivedominion.com>; pgsql-admin
On Thu, Aug 11, 2016 at 03:43:41PM -0400, Tom Lane wrote:
> Mark Steben <mark.steben@drivedominion.com> writes:
> > I am hoping to use pg_upgrade with the link option to upgrade from 9.2 to
> > 9.4.
> > There is one set of binaries:
> > However there are *three *sets of data clusters.
> > Is this possible using pg_upgrade?
>
> As far as pg_upgrade is concerned, you'd just run it three times, once per
> data cluster.
>
> If you're trying to use it through some distro-provided wrapper script,
> it's possible that that would be difficult, but the paths you mention
> sound pretty homebrew so I'm guessing that that's not a problem.
Sorry late to reply, but in your case Mark, you would run pg_upgrade
three times, once for each data directory, but use the same binaries
directory each time --- I think that is what you were asking below:
> Mark Steben <mark.steben@drivedominion.com> writes:
> From the documentation it looks like there is a one-to-one correlation
> between the binaries and the data cluster - I don't see a 'multiple'
> option.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-08-23 20:20 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 19:02 pg_upgrade question Mark Steben <mark.steben@drivedominion.com>
2016-08-11 19:43 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-08-23 20:20 ` Bruce Momjian <bruce@momjian.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox