Re: Sync production DB with development?

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Sync production DB with development?
Date: 2014-10-08 20:36:48
Message-ID: 01183b23a41fff5baa912f7568ff0249@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

> so I could easily be over a minute of sync time in another two years.
> I would really rather not have to wait several minutes every time I
> want to update my development data.

A minute is really not that long of a wait, especially given the tradeoff
in complexity. Still, if the majority of the time is spent moving old
data from one or more tables, you could exclude those from the pg_dump
with -T, then copy over some small subset of the table with a pair of
COPY commands from prod to dev.

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201410081635
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAlQ1oBIACgkQvJuQZxSWSsjSxgCgjhcAvjgoBgpYA2FEKiKovSos
l/QAn1tdZk69ku8Z1LArrFzESopr1/OB
=l59M
-----END PGP SIGNATURE-----

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Emanuel Calvo 2014-10-08 20:54:00 Re: Sync production DB with development?
Previous Message Israel Brewster 2014-10-08 20:24:15 Re: Sync production DB with development?