pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: nandha kumar <bnandhakumardba@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Need to trace the logs
Date: Thu, 15 Oct 2020 15:51:33 +0200
Message-ID: <20201015135133.GB32444@depesz.com> (raw)
In-Reply-To: <CAHVrmfpx=o0=QzV31D4MaT+-D9S9wWncFGFr7wepszTjNd_+sQ@mail.gmail.com>
References: <CAHVrmfpx=o0=QzV31D4MaT+-D9S9wWncFGFr7wepszTjNd_+sQ@mail.gmail.com>

On Thu, Oct 15, 2020 at 05:25:11PM +0530, nandha kumar wrote:
> Hi Team,
>      We are using a postgresql database with 9.6.1 version, any way to
> trace the last modified object, procedure in PostgreSQL.

well, you can log all queries, and extract the info from logs.

If by "object" you mean table/row - you can do it with triggers.

Best regards,

depesz






view thread (3+ messages)  latest in thread

Message-ID: <20201015135133.GB32444@depesz.com>
Permalink:  ../20201015135133.GB32444@depesz.com/
Also on:    postgresql.org/message-id/20201015135133.GB32444@depesz.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: depesz@depesz.com, bnandhakumardba@gmail.com
  Subject: Re: Need to trace the logs
  In-Reply-To: <20201015135133.GB32444@depesz.com>
  References: <CAHVrmfpx=o0=QzV31D4MaT+-D9S9wWncFGFr7wepszTjNd_+sQ@mail.gmail.com> <20201015135133.GB32444@depesz.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