historical log of data records

From: Sanjay Minni <sanjay(dot)minni(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: historical log of data records
Date: 2021-11-16 08:26:51
Message-ID: CAMpxBo=xMvQOk--tSp7mkChUwfJfbbtSfQE=S6O2pELGSvQvjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I need to keep a copy of old data as the rows are changed.

For a general RDBMS I could think of keeping all the data in the same table
with a flag to indicate older copies of updated / deleted rows or keep a
parallel table and copy these rows into the parallel data under program /
trigger control. Each has its pros and cons.

In Postgres would i have to follow the same methods or are there any
features / packages available ?

regards
Sanjay Minni

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sanjay Minni 2021-11-16 08:36:17 reading this group other than thru mails
Previous Message Chen, Yan-Jack (NSB - CN/Hangzhou) 2021-11-16 05:14:19 RE: PostgreSQL debug log doesn't record whole procedure(from receiving request to sending response)