Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: diffs on postgres data
- To: tlug@example.com
- Subject: Re: diffs on postgres data
- From: Shimpei Yamashita <shimpei@example.com>
- Date: Fri, 2 Feb 2001 22:42:00 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <3A7AA550.9D0A62BC@example.com>; from darrenj@example.com on Fri, Feb 02, 2001 at 09:17:20PM +0900
- References: <3A7AA550.9D0A62BC@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <9roR7.A.7oC.mrre6@example.com>
- Resent-Sender: tlug-request@example.com
On Fri, Feb 02, 2001 at 09:17:20PM +0900, Darren Cook wrote: > Is there anything like cvs or diff for a postgres (or any SQL) database? > > E.g. A table with 1000 records. Each week 5 records deleted, 10 get > changed, and 100 new records get added. I want to be able to checkout a > version of the database as it was at the beginning of any week in the > past, but the further it is in the past the less often I'll need to do > this. The table will always have an id column which is unique. > > Darren Are you sure you need diffs? It doesn't sound like you need anything more complicated than weekly backups. Besides, unlike source code, you can actually build version control into your tables by adding some required columns--e.g. "last update," "creation date," "deletion date"--and maintaining them. Or, if you don't feel like mucking about with your data structure, you could save a snapshot of the table for a week, and do an outer join of the snapshot against the current image to get the diffs. -- Shimpei Yamashita http://www.shimpei.org/
- References:
- diffs on postgres data
- From: Darren Cook <darrenj@example.com>
Home | Main Index | Thread Index
- Prev by Date: my email arrive?
- Next by Date: Re: my email arrive?
- Prev by thread: diffs on postgres data
- Next by thread: my email arrive?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links