Re: Sync production DB with development?

From: Jeff Ross <jross(at)openvistas(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Sync production DB with development?
Date: 2014-10-08 21:08:14
Message-ID: 5435A7BE.6020209@openvistas.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/8/14, 2:24 PM, Israel Brewster wrote:
> Agreed. and no, I don't need all the data. But pg_dump doesn't give me an option to, say, only grab the last week of data.

You might want to check out pg_sample. It lets you get a referentially
consistent sample of a database. You specify the number of rows you
want and it will get do the rest, retrieving enough rows from other
tables to satisfy any foreign key constraints.

https://github.com/mla/pg_sample

Jeff

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Melvin Davidson 2014-10-08 21:19:21 Re: Converting char to varchar automatically
Previous Message Emanuel Calvo 2014-10-08 20:54:00 Re: Sync production DB with development?