pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Keil <keil@dfn-cert.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Creating complex track changes database - challenge!
Date: Tue, 27 Feb 2018 10:55:33 +0100
Message-ID: <20180227105533.6eccb69f@jerome.dfn-cert.de> (raw)
In-Reply-To: <CAGv31oeZtBP6PefUADybfc8EwwR+gJ3h281WO_9zsvk9uyS0AQ@mail.gmail.com>
References: <CAGv31oeZtBP6PefUADybfc8EwwR+gJ3h281WO_9zsvk9uyS0AQ@mail.gmail.com>

Hi Jacek,

On Mon, 26 Feb 2018 11:44:13 +0100
Ɓukasz Jarych <jaryszek@gmail.com> wrote:

> Hi Guys,
> 
> i would like to ask you for help with track changes to my database.
> I am new to PosgtreeSQL but i have to learn it quickly because of my boss.
> 
> I have to:
> 
> 1. Keep all changes within table including:
> -adding rows
> -deleting
> -editing
> 
> 2. Save table with specific state and recover specific state (so go back to
> previous table versions) including comparing tables.

depending on your requirements and implementation of these, you might want to
have a look at "Developing Time-Oriented Database Applications in
SQL" (https://www2.cs.arizona.edu/people/rts/tdbbook.pdf). It is quite thick
with 530 pages, but it helped me wrap around my head on a similar
requirement. It describes the challenges with tracking and managing these
kinds of changes as well as solutions together with SQL examples.


Cheers,

	Christian

-- 
Dr.-Ing. Christian Keil                             (Principal Researcher)
Phone:+49 40 808077-648    Fax:+49 40 808077-556    Mail: keil@dfn-cert.de

DFN-CERT Services GmbH, https://www.dfn-cert.de/,   Fax: +49 40 808077-556
Sitz / Register: Hamburg, AG Hamburg, HRB 88805,  Ust-IdNr.:  DE 232129737
Sachsenstrasse 5, 20097 Hamburg, Germany. CEO: Dr. Klaus-Peter Kossakowski


25. DFN-Konferenz "Sicherheit in vernetzten Systemen"
am 27./28. Februar 2018 im Grand Hotel Elysee Hamburg

7. DFN-Konferenz "Datenschutz"
am 20./21. November 2018 im Grand Hotel Elysee Hamburg

Attachments:

  smime.p7s (application/pkcs7-signature, 4.5K) download

view thread (14+ messages)  latest in thread

Message-ID: <20180227105533.6eccb69f@jerome.dfn-cert.de>
Permalink:  ../20180227105533.6eccb69f@jerome.dfn-cert.de/
Also on:    postgresql.org/message-id/20180227105533.6eccb69f@jerome.dfn-cert.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: keil@dfn-cert.de
  Subject: Re: Creating complex track changes database - challenge!
  In-Reply-To: <20180227105533.6eccb69f@jerome.dfn-cert.de>
  References: <CAGv31oeZtBP6PefUADybfc8EwwR+gJ3h281WO_9zsvk9uyS0AQ@mail.gmail.com> <20180227105533.6eccb69f@jerome.dfn-cert.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox