by langejan » Sun Nov 16, 2008 6:41 pm
Ok. I backed up the database succesfully.
But when I try to restore it on my laptop I get a lot of errors. Here is the first lines of the error messages:
C:\Program Files\PostgreSQL\8.3\bin\pg_restore.exe -h localhost -p 5432 -U postgres -d "PT3_2008_11_16_231622" -v "C:\Users\Claus-laptop\Desktop\New Folder\ipoker_obs.backup"
pg_restore: connecting to database for restore
pg_restore: creating SCHEMA public
pg_restore: creating COMMENT SCHEMA public
pg_restore: creating TABLE holdem_cache
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 1564; 1259 84436 TABLE holdem_cache postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "holdem_cache" already exists
Command was:
CREATE TABLE holdem_cache (
id_player integer NOT NULL,
id_limit integer NOT NULL,
cnt_players integer NOT NULL...
pg_restore: creating TABLE holdem_hand_histories
pg_restore: [archiver (db)] Error from TOC entry 1536; 1259 26256 TABLE holdem_hand_histories postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "holdem_hand_histories" already exists
Command was: CREATE TABLE holdem_hand_histories (
id_hand integer NOT NULL,
history text
);
pg_restore: creating TABLE holdem_hand_player_combinations
pg_restore: [archiver (db)] Error from TOC entry 1553; 1259 84343 TABLE holdem_hand_player_combinations postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "holdem_hand_player_combinations" already exists
Command was: CREATE TABLE holdem_hand_player_combinations (
id_hand integer NOT NULL,
id_player integer NOT NULL,
flg_f_highc...
pg_restore: creating TABLE holdem_hand_player_detail
pg_restore: [archiver (db)] Error from TOC entry 1554; 1259 84350 TABLE holdem_hand_player_detail postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "holdem_hand_player_detail" already exists
Command was: CREATE TABLE holdem_hand_player_detail (
id_hand integer NOT NULL,
id_player integer NOT NULL,
seat smallint,
...
pg_restore: creating TABLE holdem_hand_player_statistics
pg_restore: [archiver (db)] Error from TOC entry 1555; 1259 84357 TABLE holdem_hand_player_statistics postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "holdem_hand_player_statistics" already exists
Command was: CREATE TABLE holdem_hand_player_statistics (
id_hand integer NOT NULL,
id_player integer NOT NULL,
id_player_rea...
pg_restore: creating TABLE holdem_hand_summary
pg_restore: [archiver (db)] Error from TOC entry 1556; 1259 84368 TABLE holdem_hand_summary postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "holdem_hand_summary" already exists
Command was: CREATE TABLE holdem_hand_summary (
id_hand integer NOT NULL,
id_site smallint,
id_limit smallint,
id_table i...
pg_restore: creating TABLE holdem_limit
pg_restore: [archiver (db)] Error from TOC entry 1537; 1259 26264 TABLE holdem_limit postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "holdem_limit" already exists
Command was: CREATE TABLE holdem_limit (
id_limit smallint NOT NULL,