You will need to enter it like this, I think:
pg_restore -U postgres "C:\Program Files\PostgreSQL\8.3\bin\PT3 DB2.sql"
(just put the path in quotes)
Moderator: Moderators
[Can't restore backup file created with pgAdmin III
I created a backup file using pgAdmin III, but when I try to restore it using pgAdmin III the OK button will stay grayed.
pgAdmin III uses PostgreSQL's pg_restore tool, which supports only the COMPRESS and TAR options of pg_dump which is used for backup creation. The PLAIN format can't be interpreted by pgAdmin III and pg_restore (it can be edited manually, and executed with psql and pgAdmin III's query tool in many cases), and thus isn't accepted as valid file.
We recommend using the COMPRESS format for daily backup tasks. The PLAIN format is for advanced manual processing before executing as SQL script, and has some restrictions (no blobs) which makes it less usable for standard backup tasks.
createdb -T template0 YourDbName
psql YourDbName < "infile"
psql YourDbName
\cd "C:\Program Files\PokerTracker 3\Data\Schemas\"
\i schema.postgres.sql
\q
Return to PostgreSQL [Read Only]
Users browsing this forum: No registered users and 26 guests