pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
any default columns for tracking / auditing purpose
2+ messages / 2 participants
[nested] [flat]

* any default columns for tracking / auditing purpose
@ 2021-11-20 13:50  Sanjay Minni <sanjay.minni@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Sanjay Minni @ 2021-11-20 13:50 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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)

with warm regards
Sanjay

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: any default columns for tracking / auditing purpose
@ 2021-11-20 14:35  Rob Sargent <robjsargent@gmail.com>
  parent: Sanjay Minni <sanjay.minni@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Rob Sargent @ 2021-11-20 14:35 UTC (permalink / raw)
  To: Sanjay Minni <sanjay.minni@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>



> 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
> 






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-11-20 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-11-20 13:50 any default columns for tracking / auditing purpose Sanjay Minni <sanjay.minni@gmail.com>
2021-11-20 14:35 ` Rob Sargent <robjsargent@gmail.com>

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