SQL reinstallation

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

SQL reinstallation

Postby Caravaggio » Sat Dec 26, 2009 4:57 pm

Hello,
i reinstalled my windows few days ago (before i saved the folder with sql on another disk). Is it possible to use this old/saved sql's database in new installed sql version and PT3?

Thank you.
Caravaggio
 
Posts: 12
Joined: Tue Mar 18, 2008 7:04 pm

Re: SQL reinstallation

Postby kraada » Sat Dec 26, 2009 5:12 pm

It depends on the version number; the data directory from 8.2 won't work in 8.3 or newer, and 8.3 won't work in 8.4 or newer. However if you install the same major version number (ie- 8.2.x, 8.3.x or 8.4.x, whichever you need), you can then use the Backup function in Beta 30.1 and backup the database. Once you back it up, you can uninstall whatever version of PostgreSQL you no longer want, upgrade to whichever version you do want and restore from the backup.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: SQL reinstallation

Postby Caravaggio » Sat Dec 26, 2009 5:49 pm

How to understand which version was used before (maybe somekind of file in old/saved SQL folder)?
Is it okay if ill install the same version of SQL to my old/saved SQL folder? Is it gonna work?
Caravaggio
 
Posts: 12
Joined: Tue Mar 18, 2008 7:04 pm

Re: SQL reinstallation

Postby kraada » Sat Dec 26, 2009 6:03 pm

There should be a text file called PG_VERSION in the data directory. Open it in Notepad and it will tell you what version you need.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests