Re: get a list of table modifications in a day? - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: get a list of table modifications in a day?
Date
Msg-id 20070913080916.GB8894@depesz.com
Whole thread Raw
In response to get a list of table modifications in a day?  (Ottavio Campana <ottavio@campana.vi.it>)
Responses Re: get a list of table modifications in a day?  (Ottavio Campana <ottavio@campana.vi.it>)
List pgsql-general
On Thu, Sep 13, 2007 at 09:59:30AM +0200, Ottavio Campana wrote:
> 1) pg_dump each day and run diff

it will become increasingly painful as the table size increases.

> 2) modify some triggers we use and store the information in another table

this is the best choice. you can use table_log extension to avoid
writing your own triggers.

http://ads.wars-nicht.de/blog/archives/100-Log-Table-Changes-in-PostgreSQL-with-tablelog.html

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: ON UPDATE trigger question
Next
From: "Albe Laurenz"
Date:
Subject: Re: Cannot declare record members NOT NULL