Merging Old PT SQL dabases

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

Merging Old PT SQL dabases

Postby Moozh » Sun Feb 21, 2010 12:48 am

Hi,

I remember seeing a long post on this before, but I can't seem to find it now. I have some old SQL databases from previous PT3 installs. Since then, I've reformatted, but I've kept the postgre folders and data files. If I remember correctly, it's not trivial to merge them back in to the current install. Does anyone know how I can go about that? Thanks!
Moozh
 
Posts: 4
Joined: Mon Sep 15, 2008 11:59 pm

Re: Merging Old PT SQL dabases

Postby Moozh » Sun Feb 21, 2010 12:54 am

Oh, also some of these are older versions of postgre (ie 8.0 I think)
Moozh
 
Posts: 4
Joined: Mon Sep 15, 2008 11:59 pm

Re: Merging Old PT SQL dabases

Postby kraada » Sun Feb 21, 2010 9:42 am

What you'd want to do is install whatever the postgres version is for each data directory one at a time (start with the earliest version number so you don't lose track!). You can find the postgres version of the directory by opening the PG_VERSION file in notepad (it'll say something like 7.4, 8.0, 8.1, etc.). Install PostgreSQL using the pgInstaller to that directory while unchecking initialize database cluster (I'm not sure if it's called that in the 7.4 installer, it is in the 8.x installers). Once it's installed, link it up to PT3 Beta 30.7. Backup the database using File --> Backup. Uninstall PostgreSQL, install the next version. Rinse and repeat until you've backed up every database.

Then install the actual version of PostgreSQL you want, and restore all of the databases from backup. Then you'll have them all in PT3 in the same PostgreSQL version.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Merging Old PT SQL dabases

Postby Moozh » Mon Feb 22, 2010 9:45 pm

Ok, thanks. I also have some old PT2 mdb databases, but I don't have PT2 anymore. Any advice there? I reinstalled it with a product ID of [removed]. Can you PM me an activation for it?
Moozh
 
Posts: 4
Joined: Mon Sep 15, 2008 11:59 pm

Re: Merging Old PT SQL dabases

Postby WhiteRider » Tue Feb 23, 2010 5:35 am

Please create a Support ticket in the PT2 section and give your Product ID.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Merging Old PT SQL dabases

Postby Moozh » Wed Feb 24, 2010 4:34 am

Ok, I finally found an install copy of v8.0 and got it to link up. The final trick was changing the password permissions from md5 to trust. Now I see 1 PT3 DB, and a bunch of PTPGSQL1, PTPGSQL2, etc databases. Am I right in thinking that those are the old postgre databases for PT2? Thanks again for the help.
Moozh
 
Posts: 4
Joined: Mon Sep 15, 2008 11:59 pm

Re: Merging Old PT SQL dabases

Postby WhiteRider » Wed Feb 24, 2010 5:38 am

"PT3 DB" is a PT3 database, but I'm not familiar with the PTP databases so they could be your PT2 databases - if you need help getting PT2 set up again you'll do better to post in the PT2 section.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 1 guest