Problem about export/import postgresql tables use pg_dump/pg_restore - Mailing list pgsql-general

From Ma, Dong (Vincent@BAS-BECOM-BJ)
Subject Problem about export/import postgresql tables use pg_dump/pg_restore
Date
Msg-id D06F06C893D0E841842259823E18FC8A2F44499199@GVW1159EXB.americas.hpqcorp.net
Whole thread Raw
List pgsql-general

Hi all,

 

Recently I want to import a new table into a existing database, I run with follow steps:

1.       Export my whole database schema from test machine database: pg_dump -s -F t –f dumpfile database

2.       Import only one table into existing database: pg_restore -F t –d database -t tablename dumpfile

 

The problem is the table ‘tablename’ schema import correctly, but didn’t import the indexes, constrains and column comments of this table. Can somebody do me a favor about understanding why this doesn’t work?

 

Thanks,

Best Regards,

Vincent Ma(Ma Dong)

 

Hewlett-Packard Co.

IDD: +86 010 6564 5733

Email: dong.ma@hp.com

 

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: overhead for stats_row_level
Next
From: jehanzeb mirza
Date:
Subject: