Re: Help to dump tables in a database and restore in another database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Intengu Technologies <sindile(dot)bidla(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Help to dump tables in a database and restore in another database
Date: 2010-01-05 15:12:07
Message-ID: 9331.1262704327@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Intengu Technologies <sindile(dot)bidla(at)gmail(dot)com> writes:
> Running Windows7 with Postgresql 8.4
> I am trying to dump about 132 tables, this is my command:

> pg_dump --host localhost --port 5432 --username postgres -o -v -t
> 'myschema.*' dbname > mydump.sql

> This generates an error no matching tables were found, is the asterisk
> not a wild card meaning all tables found in the schema named myschema

Works for me. You sure that the pg_dump is actually 8.4? The -t switch
wasn't bright enough to understand wildcards before 8.2.

Another possibility is that the schema isn't really named myschema
(case sensitivity issues there).

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Hilda Raymond 2010-01-06 07:32:25 postgres default database deleted!!
Previous Message Greg Stark 2010-01-05 15:05:19 Re: to find table stats for last update time.