Re: Dump all the indexes/constraints/roles - Mailing list pgsql-general

From Melvin Davidson
Subject Re: Dump all the indexes/constraints/roles
Date
Msg-id CANu8FixbsXnThq5aiaQrHx7EjgMJNoYYPvTS4sgU3_UvPSc4Nw@mail.gmail.com
Whole thread Raw
In response to Re: Dump all the indexes/constraints/roles  (Patrick B <patrickbakerbr@gmail.com>)
List pgsql-general


On Tue, Oct 18, 2016 at 3:11 PM, Patrick B <patrickbakerbr@gmail.com> wrote:
Thank you guys... good to know that pg_dump does all the job for me :)

So.. If I only dump using the --schema-only option, it will dump all the schemas, constraints, indexes and tables?

Because probably, I'll have to import the data manually. NOt in a single pg_restore I mean. (AWS issue) 

>...If I only dump using the --schema-only option, it will dump all the schemas, constraints, indexes and tables?

Yes! Please RTFM, it's there for a reason. ---> https://www.postgresql.org/docs/9.5/static/app-pgdump.html

Also, please note you can use -a to only dump data

--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

pgsql-general by date:

Previous
From: Patrick B
Date:
Subject: Re: Dump all the indexes/constraints/roles
Next
From: Devrim Gündüz
Date:
Subject: Re: Problem changing default data_directory in PG 9.6 + CentOS6