Re: Can one Dump schema without index/constraints?

From: Tory M Blue <tmblue(at)gmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Can one Dump schema without index/constraints?
Date: 2014-02-15 05:40:27
Message-ID: CAEaSS0bKsCOw7mCacqZVmoYknO_+aHbSKWUVNvonAfOAemKzxw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Feb 14, 2014 at 5:55 PM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com>wrote:

> On Sat, Feb 15, 2014 at 6:06 AM, Tory M Blue <tmblue(at)gmail(dot)com> wrote:
> >
> >
> > I'm working with slon and the index portion for at least 3 of my tables
> take
> > hours to complete and thus with this instance of slony being a wide area
> > replica, sessions time out and slon fails to complete.
> >
> > So I'm looking at dumping the schema without index information, install
> that
> > on the slon slave and replicate that way, once replication of the data is
> > done, I can run commands to create the indexes.
> >
> > But I'm not 100% if there are tools or private scripts written to pull
> > indexes from a schema only dump and then allow for an easy recreation of
> the
> > indexes at the end of the slon replication process (once all sets are
> > replicated)?
> "pg_dump --section" can be used for that. pre-data includes table
> definitions and everything other than post-data dumps. post-data has
> contraint, trigger, index and rules.
> --
> Michael
>

Thanks Michael, that looks like the ticket!! Will give this a whirl

Thanks again
Tory

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Niels Kristian Schjødt 2014-02-16 17:49:21 Optimal settings for RAID controller - optimized for writes
Previous Message Michael Paquier 2014-02-15 01:55:45 Re: Can one Dump schema without index/constraints?