pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Sanjay Minni <sanjay.minni@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: any default columns for tracking / auditing purpose
Date: Sat, 20 Nov 2021 07:35:57 -0700
Message-ID: <73BE98A3-C0B6-47F4-A6EB-5FE18C77F880@gmail.com> (raw)
In-Reply-To: <CAMpxBom5Su6OJ+wfpq21-H7FVg5aXiDArv2bFJmmbq9cEwNukw@mail.gmail.com>
References: <CAMpxBom5Su6OJ+wfpq21-H7FVg5aXiDArv2bFJmmbq9cEwNukw@mail.gmail.com>



> On Nov 20, 2021, at 6:50 AM, Sanjay Minni <sanjay.minni@gmail.com> wrote:
> 
> 
> In Postgres 12 and up, are there any default columns available which could be useful for tracking / auditing purposes ?
> e.g.
> - real user who entered / updated the data
> - timestamp when data was updated / entered
> where can i get a list of such default columns (if any) - which could be accessed easily in user applications.
> 
> also what is the usual practice in creating userID's in a large multi-tenanted applications with highly dynamically changing users (e.g students who enroll and go off after some sometime), with all users having the same access - 
> is a different userID created in the system for each user or is a common postgresID used by the application and the application is responsible for tracking individual users with its own userID. (this will reduce system overhead)
>  
Never ever re-use an id.  There are lots of them.  If you need lots and lots of them use UUID.

> with warm regards
> Sanjay
> 






view thread (2+ messages)

Message-ID: <73BE98A3-C0B6-47F4-A6EB-5FE18C77F880@gmail.com>
Permalink:  ../73BE98A3-C0B6-47F4-A6EB-5FE18C77F880@gmail.com/
Also on:    postgresql.org/message-id/73BE98A3-C0B6-47F4-A6EB-5FE18C77F880@gmail.com

 · 

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: robjsargent@gmail.com, sanjay.minni@gmail.com
  Subject: Re: any default columns for tracking / auditing purpose
  In-Reply-To: <73BE98A3-C0B6-47F4-A6EB-5FE18C77F880@gmail.com>
  References: <CAMpxBom5Su6OJ+wfpq21-H7FVg5aXiDArv2bFJmmbq9cEwNukw@mail.gmail.com> <73BE98A3-C0B6-47F4-A6EB-5FE18C77F880@gmail.com>

* 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