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: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Help to dump tables in a database and restore in another database
Date: 2010-01-08 18:32:04
Message-ID: 10067.1262975524@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
Thomas Kellerer <spam_eater(at)gmx(dot)net> writes:
> Intengu Technologies, 05.01.2010 11:42:
>> 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

> No. The wildcard character in SQL is %

pg_dump's wildcard is * though.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Tom LaneDate: 2010-01-08 18:39:11
Subject: Re: upgrade from 32 bit to 64 bit within same postgresql major release (e.g. 8.3.x)
Previous:From: Matthew KirkDate: 2010-01-08 18:31:17
Subject: upgrade from 32 bit to 64 bit within same postgresql major release (e.g. 8.3.x)

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