Re: creating a table based on a table in stored in another database

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: creating a table based on a table in stored in another database
Date: 2010-05-18 08:15:43
Message-ID: 20100518081543.GA8491@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to Malm Paul :
> Hi list,
> in a database I have different kind of tables. I would like to take the meta data from one of those tables and create the same type of table (but empty) in another database.
> Can anyone, please, tell me how to do this?

Create a schema-only dump and restore it into the other database.

Regards, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431 2EB0 389D 1DC2 3172 0C99

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Charo Carino 2010-05-18 08:42:28 postgreSQL enquiry
Previous Message Malm Paul 2010-05-18 07:15:58 creating a table based on a table in stored in another database