Re: Dump all the indexes/constraints/roles

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Patrick B <patrickbakerbr(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dump all the indexes/constraints/roles
Date: 2016-10-18 04:06:04
Message-ID: 717b60b0-5305-3d7c-8fc6-8536d01bf685@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/17/2016 08:32 PM, Patrick B wrote:
> Hi guys,
>
> I need to export an entire database to another server, for testing purpose.
>
> Is there any way to export all indexes and constraints ?

pg_dump the_database

> Postgres 9.2
> Patrick

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raimo Jormakka 2016-10-18 06:17:40 Collations and codepages
Previous Message John R Pierce 2016-10-18 04:04:23 Re: Dump all the indexes/constraints/roles