Failed to restore/recreate database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody,

I wanted to duplicate a database, but wound up with nothing,
It seems.  I am using 8.3.7 on redhat linux.  Here's what I
did (as user postgres):

 bash-3.00$ createdb musket
 bash-3.00$ 
 bash-3.00$ df /pgsql
 Filesystem           1K-blocks      Used Available Use% Mounted on
 /dev/mapper/VolGroup01-LogVol02
                      1548184780 358554536 1110987044  25% /pgsql
 bash-3.00$ 
 bash-3.00$ createdb musket
 bash-3.00$ 
 bash-3.00$ gunzip /home/postgres/backup/20091114.6.gz | psql -d musket -f -
 bash-3.00$ 
 bash-3.00$ echo $?
 0
 bash-3.00$ 
 bash-3.00$ psql musket
 Welcome to psql 8.3.7, the PostgreSQL interactive terminal.

 Type:  \copyright for distribution terms
        \h for help with SQL commands
        \? for help with psql commands
        \g or terminate with semicolon to execute query
        \q to quit

 musket=# 
 musket=# \dt public.*
 No matching relations found.
 musket=# 
 musket=# \q
 bash-3.00$ 
 bash-3.00$ df /pgsql
 Filesystem           1K-blocks      Used Available Use% Mounted on
 /dev/mapper/VolGroup01-LogVol02
                      1548184780 358554564 1110987016  25% /pgsql
 bash-3.00$ 

There must be something wrong with the way I used psql with the option
(-f -), although I can't see what that would be.  The file 20091114.6.gz
was made by:
 pg_dumpall | gzip > 20091114.6.gz

Would someone please clue me in?

Regards,

Tena Sakai
tsakai@xxxxxxxxxxxxxx


-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux