Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group