Re: pg dump only indexes - Mailing list pgsql-admin

From Vibhor Kumar
Subject Re: pg dump only indexes
Date
Msg-id FB12A506-8A73-4A89-862B-5F0B27B14448@gmail.com
Whole thread Raw
In response to pg dump only indexes  ("Campbell, Lance" <lance@illinois.edu>)
List pgsql-admin
On Dec 16, 2013, at 5:42 PM, Campbell, Lance <lance@illinois.edu> wrote:

> PostgreSQL 9.2
> Is there a way to use pg_dump to dump just indexes on a database?

You can use --section=post-data and grep the INDEXES.

Or you can use pg_catalog.pg_indexes.indexdef for indexes.
http://www.postgresql.org/docs/9.2/static/view-pg-indexes.html

Thanks & Regards,
Vibhor Kumar
Blogs:http://vibhork.blogspot.com
http://vibhorkumar.wordpress.com



pgsql-admin by date:

Previous
From: "Campbell, Lance"
Date:
Subject: pg dump only indexes
Next
From: bricklen
Date:
Subject: Re: pg dump only indexes