From: vinny <vinny@xs4all.nl>
To: Ashwani Kumar B <ashwani.b.kumar@ericsson.com>
Cc: pgsql-performance-owner@postgresql.org
Cc: pgsql-sql-owner@postgresql.org
Cc: pgsql-admin@postgresql.org
Cc: pgsql-admin-owner@postgresql.org
Subject: Re: Import & Export DB table structure with data
Date: Wed, 19 Jul 2017 09:16:46 +0200
Message-ID: <acea877f29cff5f22b97b6ff0192018f@xs4all.nl> (raw)
In-Reply-To: <AM3PR07MB354FC45C950B7F840554593C0A60@AM3PR07MB354.eurprd07.prod.outlook.com>
References: <AM3PR07MB354FC45C950B7F840554593C0A60@AM3PR07MB354.eurprd07.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On 2017-07-19 07:55, Ashwani Kumar B wrote:
> Hi
>
> I have to import table structure from one DB and create the same
> table structure in another DB.
>
> Secondly I have to copy all the data from one DB to another DB
>
> Kindly suggest way forward.
>
> Regards
>
> Ashwani
If both databases are PostgreSQL then you can just use pg_dump.
If the databases are of different brands then you may need special tool,
there are many conversion tools available, but not all free or
inexpensive.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: vinny@xs4all.nl, ashwani.b.kumar@ericsson.com, pgsql-performance-owner@postgresql.org, pgsql-sql-owner@postgresql.org, pgsql-admin-owner@postgresql.org
Subject: Re: Import & Export DB table structure with data
In-Reply-To: <acea877f29cff5f22b97b6ff0192018f@xs4all.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox