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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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