Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Postgres DB Migration from 8.3 to 9.1
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vishalakshi Navaneethakrishnan  
View profile  
 More options Oct 11 2012, 10:16 pm
Newsgroups: pgsql.general
From: nvishalak...@sirahu.com (Vishalakshi Navaneethakrishnan)
Date: Fri, 12 Oct 2012 07:45:47 +0530
Local: Thurs, Oct 11 2012 10:15 pm
Subject: Postgres DB Migration from 8.3 to 9.1

Hi Friends,

We have our production environment database server in Postgres 8.3 version.
we have planned to upgrade to lastest version 9.1. Dump from 8.3  and
restore in Postgres 9.1 takes more than 5 hours. Any other quick method to
upgrade from 8.3 to 9.1. We need to reduce our downtime  below 1 hour. Any
Possibilities..?

Thanks in Advance.

--
Best Regards,
Vishalakshi.N


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gavin Flower  
View profile  
 More options Oct 11 2012, 10:33 pm
Newsgroups: pgsql.general
From: GavinFlo...@archidevsys.co.nz (Gavin Flower)
Date: Fri, 12 Oct 2012 15:33:18 +1300
Local: Thurs, Oct 11 2012 10:33 pm
Subject: Re: Postgres DB Migration from 8.3 to 9.1

On 12/10/12 15:15, Vishalakshi Navaneethakrishnan wrote:

> Hi Friends,

> We have our production environment database server in Postgres 8.3
> version. we have planned to upgrade to lastest version 9.1. Dump from
> 8.3  and restore in Postgres 9.1 takes more than 5 hours. Any other
> quick method to upgrade from 8.3 to 9.1. We need to reduce our
> downtime  below 1 hour. Any Possibilities..?

> Thanks in Advance.

> --
> Best Regards,
> Vishalakshi.N

Have you considered migrating to 9.2?  It has some performance and other
useful enhancements over 9.1.

I suspect that testing on early versions of 9.2.2 might be a good idea,
with the intent of migrating to 9.2.2 when it is ready for production use.

Cheers.
Gavin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John R Pierce  
View profile  
 More options Oct 11 2012, 10:38 pm
Newsgroups: pgsql.general
From: pie...@hogranch.com (John R Pierce)
Date: Thu, 11 Oct 2012 19:38:07 -0700
Local: Thurs, Oct 11 2012 10:38 pm
Subject: Re: Postgres DB Migration from 8.3 to 9.1
On 10/11/12 7:15 PM, Vishalakshi Navaneethakrishnan wrote:

> We have our production environment database server in Postgres 8.3
> version. we have planned to upgrade to lastest version 9.1. Dump from
> 8.3  and restore in Postgres 9.1 takes more than 5 hours. Any other
> quick method to upgrade from 8.3 to 9.1. We need to reduce our
> downtime  below 1 hour. Any Possibilities..?

is it the dump or the restore taking the lions share of that time?

I don't know if pg_upgrade supports 8.3, but that would be one
approach.  getting it setup to work correctly can require some
tinkering, but once you have that sorted, you start with a base backup
of the 8.3 file system, and pg_upgrade 'converts' it to the newer
version.  you need both runtimes setup side by side so either can be run
as pg_upgrade will need to start the old version in order to dump its
metadata catalogs prior to migrating the data files. if you put both
data directories on the same file system, it can use hard linking to
'move' the datafiles.

--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast

--
Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Raghavendra  
View profile  
 More options Oct 11 2012, 10:41 pm
Newsgroups: pgsql.general
From: raghavendra....@enterprisedb.com (Raghavendra)
Date: Fri, 12 Oct 2012 08:11:24 +0530
Local: Thurs, Oct 11 2012 10:41 pm
Subject: Re: Postgres DB Migration from 8.3 to 9.1

> We have our production environment database server in Postgres 8.3
> version. we have planned to upgrade to lastest version 9.1. Dump from 8.3
>  and restore in Postgres 9.1 takes more than 5 hours. Any other quick
> method to upgrade from 8.3 to 9.1. We need to reduce our downtime  below 1
> hour. Any Possibilities..?

> You should consider 9.2.. Ofcourse, you need to test your application

against 9.2 before migrating, because as you mentioned you are on 8.3 where
you application might be compatible to it. There are some changes to
functions,string handling etc which are more advanced in 9.2. Once you
agree that app.. is good to go with 9.2, now to think for option with less
downtime or affordable downtime.

I would say, use pg_upgrade which has minimal downtime. I guess pg_uprades
supports from 8.3 onwards.
If you say no downtime or even minimal then prefer Slony-I (trigger based
replication).

---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amitabh Kant  
View profile  
 More options Oct 12 2012, 11:06 am
Newsgroups: pgsql.general
From: amitabhk...@gmail.com (Amitabh Kant)
Date: Fri, 12 Oct 2012 20:35:49 +0530
Local: Fri, Oct 12 2012 11:05 am
Subject: Re: Postgres DB Migration from 8.3 to 9.1

On Fri, Oct 12, 2012 at 7:45 AM, Vishalakshi Navaneethakrishnan <

Try using the -j <number-of-jobs> option to speed up restore process. See
http://www.postgresql.org/docs/9.1/static/app-pgrestore.html . Not  sure
though whether it will bring it up within your range.

Amitabh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Crawford  
View profile  
 More options Oct 12 2012, 11:29 am
Newsgroups: pgsql.general
From: scrawf...@pinpointresearch.com (Steve Crawford)
Date: Fri, 12 Oct 2012 08:28:52 -0700
Local: Fri, Oct 12 2012 11:28 am
Subject: Re: Postgres DB Migration from 8.3 to 9.1

On 10/12/2012 08:05 AM, Amitabh Kant wrote:

Note that one issue with the -j option is that it requires the input be
a regular file rather than a pipe so you have to wait until you have a
complete dump stored on-disk somewhere before you can start the restore.
This delay may offset, eliminate or overshadow any benefit from the
parallel-restore speedup.

Pg_upgrade does support upgrades from 8.3:
http://www.postgresql.org/docs/current/static/pgupgrade.html but you
will need to set up a dev-system to become familiar with the process.

Depending on the nature of your data, you may be able to roll-your-own.
Some of our systems have large tables of data that, once collected,
remain static. If you have that type of situation you may be able to
pre-migrate historical data and then have a reduced window to migrate
recent/live data.

Cheers,
Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruce Momjian  
View profile  
 More options Oct 12 2012, 11:29 am
Newsgroups: pgsql.general
From: br...@momjian.us (Bruce Momjian)
Date: Fri, 12 Oct 2012 11:29:07 -0400
Local: Fri, Oct 12 2012 11:29 am
Subject: Re: Postgres DB Migration from 8.3 to 9.1

Upgrading with pg_upgrade from 8.3 is going to require 9.2 to be
compiled with --disable-integer-datetimes.

--
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

--
Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Marlowe  
View profile  
 More options Oct 12 2012, 6:07 pm
Newsgroups: pgsql.general
From: scott.marl...@gmail.com (Scott Marlowe)
Date: Fri, 12 Oct 2012 16:07:09 -0600
Local: Fri, Oct 12 2012 6:07 pm
Subject: Re: Postgres DB Migration from 8.3 to 9.1
On Thu, Oct 11, 2012 at 8:15 PM, Vishalakshi Navaneethakrishnan

<nvishalak...@sirahu.com> wrote:
> Hi Friends,

> We have our production environment database server in Postgres 8.3 version.
> we have planned to upgrade to lastest version 9.1. Dump from 8.3  and
> restore in Postgres 9.1 takes more than 5 hours. Any other quick method to
> upgrade from 8.3 to 9.1. We need to reduce our downtime  below 1 hour. Any
> Possibilities..?

As downtime required approaches zero, the likelyhood of needing slony
approaches 1.

--
Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vishalakshi Navaneethakrishnan  
View profile  
 More options Oct 13 2012, 12:52 am
Newsgroups: pgsql.general
From: nvishalak...@sirahu.com (Vishalakshi Navaneethakrishnan)
Date: Sat, 13 Oct 2012 10:22:05 +0530
Local: Sat, Oct 13 2012 12:52 am
Subject: Re: Postgres DB Migration from 8.3 to 9.1

Hi all,

While testing upgrade facility, I have installed postgres 9.2 using  source
package.

Because it needs to  be compiled with --disable-integer-datetimes.

I have used this command

./configure --prefix=/opt/PostgreSQL/9.2/ --disable-integer-datetimes
--without-readline

After installation i found pg_upgrade binary missing in bin directoy. How
can i get this ?

Thanks in Advance.

On Sat, Oct 13, 2012 at 3:37 AM, Scott Marlowe <scott.marl...@gmail.com>wrote:

--
Best Regards,
Vishalakshi.N

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John R Pierce  
View profile  
 More options Oct 13 2012, 1:32 am
Newsgroups: pgsql.general
From: pie...@hogranch.com (John R Pierce)
Date: Fri, 12 Oct 2012 22:32:10 -0700
Local: Sat, Oct 13 2012 1:32 am
Subject: Re: Postgres DB Migration from 8.3 to 9.1
On 10/12/12 9:52 PM, Vishalakshi Navaneethakrishnan wrote:

> While testing upgrade facility, I have installed postgres 9.2 using
>  source package.

> Because it needs to  be compiled with --disable-integer-datetimes.

> I have used this command

> ./configure --prefix=/opt/PostgreSQL/9.2/ --disable-integer-datetimes
> --without-readline

> After installation i found pg_upgrade binary missing in bin directoy.
> How can i get this ?

pg_upgrade is part of the optional 'contrib' packages, these have to be
explicitly built.  from your top level source directory, try....

     make contrib
     make install

...

--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast

--
Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jasen Betts  
View profile  
 More options Oct 13 2012, 8:13 pm
Newsgroups: pgsql.general
From: ja...@xnet.co.nz (Jasen Betts)
Date: 14 Oct 2012 00:13:03 GMT
Local: Sat, Oct 13 2012 8:13 pm
Subject: Re: Postgres DB Migration from 8.3 to 9.1
On 2012-10-12, Bruce Momjian <br...@momjian.us> wrote:

Doesn't that depend on what the 8.3 is using? Eg. Debian has used
integer datetimes since 8.1 (or earlier - 8.1 is the oldest I have
at hand)

If he is using float datetimes is that going to be discontinued
sometime?

--
⚂⚃ 100% natural

--
Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jasen Betts  
View profile  
 More options Oct 13 2012, 7:56 pm
Newsgroups: pgsql.general
From: ja...@xnet.co.nz (Jasen Betts)
Date: 13 Oct 2012 23:56:23 GMT
Local: Sat, Oct 13 2012 7:56 pm
Subject: Re: Postgres DB Migration from 8.3 to 9.1
On 2012-10-12, Vishalakshi Navaneethakrishnan <nvishalak...@sirahu.com> wrote:

> --e0cb4efe29e2435cf104cbd3459b
> Content-Type: text/plain; charset=ISO-8859-1

> Hi Friends,

> We have our production environment database server in Postgres 8.3 version.
> we have planned to upgrade to lastest version 9.1. Dump from 8.3  and
> restore in Postgres 9.1 takes more than 5 hours. Any other quick method to
> upgrade from 8.3 to 9.1. We need to reduce our downtime  below 1 hour. Any
> Possibilities..?

Using slony1 you can continue to operate the 8.3 until the instant you
want to change over.

--
⚂⚃ 100% natural

--
Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruce Momjian  
View profile  
 More options Oct 15 2012, 8:02 pm
Newsgroups: pgsql.general
From: br...@momjian.us (Bruce Momjian)
Date: Mon, 15 Oct 2012 20:02:39 -0400
Local: Mon, Oct 15 2012 8:02 pm
Subject: Re: Postgres DB Migration from 8.3 to 9.1

No one has mentioned removing the ability to do floating-point
timestamps.

--
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

--
Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »