lundi 20 avril 2015

Change tracking in postgres

I want to track changes on some tables in Postgres. Is there any native means in PG for doing this? Probably not, because this requirement may be very specific depending on use-case.

I would like to observe only some columns in table for changes, and make a copy of the row, if such a filed changes. The row should be copied in another, similar table, which additionally has a column for current user, change time-stamp, id of the original row and of cause own primary key column.

Are there any good patterns for doing this? Which native Postgres tools could I use, and what should I implement myself?

Aucun commentaire:

Enregistrer un commentaire