Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXjE6-0000v4-1g for pgsql-admin@arkaria.postgresql.org; Wed, 19 Jul 2017 07:16:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dXjE5-0000Ou-Kp for pgsql-admin@arkaria.postgresql.org; Wed, 19 Jul 2017 07:16:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dXjE5-0000OU-33 for pgsql-admin@postgresql.org; Wed, 19 Jul 2017 07:16:53 +0000 Received: from lb2-smtp-cloud3.xs4all.net ([194.109.24.26]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dXjE2-0007eY-2F for pgsql-admin@postgresql.org; Wed, 19 Jul 2017 07:16:51 +0000 Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:211]) by smtp-cloud3.xs4all.net with ESMTP id mXGm1v0075LLN1B01XGmTs; Wed, 19 Jul 2017 09:16:46 +0200 Received: from mail.genj.nl ([77.242.116.162]) by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Wed, 19 Jul 2017 09:16:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 19 Jul 2017 09:16:46 +0200 From: vinny To: Ashwani Kumar B Cc: pgsql-performance-owner@postgresql.org, pgsql-sql-owner@postgresql.org, pgsql-admin@postgresql.org, pgsql-admin-owner@postgresql.org Subject: Re: Import & Export DB table structure with data In-Reply-To: References: Message-ID: X-Sender: vinny@xs4all.nl User-Agent: XS4ALL Webmail List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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