CherryWaves wrote:My database is 115gb, I want to move it to the other drive, and run postgres from there. What are the steps?
Backup the existing database:
Guide: Backup & RestoreUninstall PostgreSQL on C:\ and reinstall it on D:\
Guide: Installing PostgreSQLand then restore the backed up database.
CherryWaves wrote:I have read that in order to trasnfer the database, I need an equivalent of 115gb of free space on the current drive, which isn't really possible.
To create the backup you will either need to free up the disk space needed on C:\ or configure Windows to use the free space on your D:\ drive for your %TEMP% files.
CherryWaves wrote:So if I uninstall Postgres on the current drive and reinstall it on the new drive, PokerTracker will now run and save data on the new drive. Is that correct?
If PostgreSQL is installed on the D:\ drive then that is where the data will be saved using the default install directory for the 'data' folder.
CherryWaves wrote:1. Is it possible to transfer, say, the most recent 20gb of hands to the new database on the new drive?
You can only backup & restore databases in their entirety. If you want a smaller database you can import your most recent hands into a new database on the new drive. You can re-import hands from your 'Processed' folder and/or export hands from the original database:
Guide: Processed FilesGuide: Exporting HandsNote that re-importing will not transfer things like manual player/hand notes or player/hand tags. You can export/import player/hand notes via 'Database -> Notes' but player/hand tags can only be transferred via backup/restore.
CherryWaves wrote:2. If in the future, can I still access the old drive database if I want to study my old hands?
If you want to access that data in the future (without transferring to D:\) then you can just leave it where it is. You can install a separate instance of PostgreSQL on D:\, keep PostgreSQL installed on C:\ as well and connect to either with PokerTracker 4 whenever you want. For example if you have PostgreSQL v12 installed on C:\ using port 5432 then you can install PostgreSQL v16 on D:\ using port 5433.