Search Postgresql Archives

Re:[GENERAL] restoring one table?

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

 



Brian Maguire wrote:
> We need to restore one table from a backup.  What is the proper way to do this?
> 
> Our backup command looks like this:
> 
> pg_dump -C -Fc -S postgresql mydatabase > today.backup.sqlc
> 
> I am using PostgreSQL 8.1.
> 
> -- 
> Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
> 
> 
> 

Use the switch --table=NAME of pg_restore, i.e. something like this:

pg_restore -C -F c S postgresql -d mydatabase --table=your_table -v today.backup.sqlc

Tomas


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux