pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedNeed to trace the logs
3+ messages / 3 participants
[nested] [flat]
* Need to trace the logs
@ 2020-10-15 11:55 nandha kumar <bnandhakumardba@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: nandha kumar @ 2020-10-15 11:55 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi Team,
We are using a postgresql database with 9.6.1 version, any way to
trace the last modified object, procedure in PostgreSQL.
Regards,
Nandhakumar B
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Need to trace the logs
@ 2020-10-15 13:51 hubert depesz lubaczewski <depesz@depesz.com>
parent: nandha kumar <bnandhakumardba@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: hubert depesz lubaczewski @ 2020-10-15 13:51 UTC (permalink / raw)
To: nandha kumar <bnandhakumardba@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Need to trace the logs
@ 2020-10-15 13:55 Pavel Stehule <pavel.stehule@gmail.com>
parent: hubert depesz lubaczewski <depesz@depesz.com>
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Stehule @ 2020-10-15 13:55 UTC (permalink / raw)
To: hubert depesz lubaczewski <depesz@depesz.com>; +Cc: nandha kumar <bnandhakumardba@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>
čt 15. 10. 2020 v 15:51 odesílatel hubert depesz lubaczewski <
depesz@depesz.com> napsal:
> 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.
>
Event triggers are designed for this purpose
https://www.postgresql.org/docs/9.6/event-triggers.html
Regards
Pavel
> Best regards,
>
> depesz
>
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-10-15 13:55 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 11:55 Need to trace the logs nandha kumar <bnandhakumardba@gmail.com>
2020-10-15 13:51 ` hubert depesz lubaczewski <depesz@depesz.com>
2020-10-15 13:55 ` Pavel Stehule <pavel.stehule@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