Questions about updating from 8.2 to 8.3

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Questions about updating from 8.2 to 8.3

Postby DerekG » Mon Jun 30, 2008 5:33 pm

I remember being told I can install 8.3 along side 8.2 and they should work together.

1) Any potential problems/headaches if I pull HUD data from both an 8.2 and 8.3 db?

2) Will new databases automatically be created as 8.3 or is there something I need to check or change since I'll be keeping 8.2 around for a month or so?

3) Will I be able to restore one of my saved 8.2 databases from a previous pg_dump into 8.3? (If not, I guess I better keep 8.2 installed.)

4) I currently have 2 servers listed in PGAdmin (both 8.2). The only difference between the two is one lists Maintenance Database as postgres, the other as template1. I remember reading somewhere that this was changed during one of the 8.2.x updates. Also, Restore Environment is No on one server, Yes on another. I'm not sure what this does. My question is, is it safe or helpful in any way to delete/drop one of these before installing v8.3?

Thank you.
DerekG
 
Posts: 273
Joined: Sat Dec 15, 2007 3:24 am

Re: Questions about updating from 8.2 to 8.3

Postby keggler » Mon Jun 30, 2008 6:54 pm

i have no idea if pt3 hud will accept multiple dbs from different versions; and i guess if you use the native 8. 3 pg command line interfaces to create your new dbs,they will be created in 8.3 format - but which db will pt be auto importing to? 8.3 i guess, so move your 8.2 data to 8.3, and then just let pt update this - keep your 8.2 database just in case... also keep your processed hh's (this is good practice in any case),so if it all goes belly-up, you have a back-stop to re-populate;

but speaking purely from a postgres perspective:

probably best if you run them on different ports... then you can run something like: pg_dumpall -p 5432 | psql -d postgres -p 6543 to transfer your data.

hth


susan
keggler
 
Posts: 640
Joined: Sun Jun 01, 2008 4:53 am

Re: Questions about updating from 8.2 to 8.3

Postby DerekG » Tue Jul 01, 2008 1:04 am

Yeah, I'll definitely use a different port# when I install it, thanks. Never tried that pg_dumpall command before, I'll experiment with it. Do you happen to know if having these two different servers affects performance in any way? Can I drop one?
DerekG
 
Posts: 273
Joined: Sat Dec 15, 2007 3:24 am

Re: Questions about updating from 8.2 to 8.3

Postby tarix » Tue Jul 01, 2008 2:09 am

DerekG wrote:Do you happen to know if having these two different servers affects performance in any way? Can I drop one?


There will be a small amount of overhead since you are running two copies of pg_ctrl.exe and you are accessing two completely different sets of files. You could probably measure it, but I doubt you could "feel" it.

In any case 8.3 is supposed to have speed improvements over 8.2 so it is probably worth the effort of upgrading and migrating everything to 8.3.
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm

Re: Questions about updating from 8.2 to 8.3

Postby WhiteRider » Tue Jul 01, 2008 5:14 am

Just bear in mind the PT2/PAH complication if you still use them.

It is possible to use PT2 with postgres 8.3,
but the PAH cache does not work with 8.3.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Questions about updating from 8.2 to 8.3

Postby DerekG » Tue Jul 01, 2008 5:23 am

tarix wrote:two completely different sets of files


That's the weird thing. It's two different 8.2 servers accessing the same files and databases. Not sure why, it's all over my head but I assumed it had something to do with the Maintenance Database namechange during one of the 8.2.x updates. Running the upgrade.bat script never works for me, I always have to do a complete uninstall/reinstall in order to upgrade.

Whiterider, thanks for the heads-up.
DerekG
 
Posts: 273
Joined: Sat Dec 15, 2007 3:24 am


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 32 guests

cron
highfalutin