pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Cc: Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>
Subject: Log update query along with username who has executed the same.
Date: Tue, 23 May 2017 12:42:52 +0000
Message-ID: <c99a53b766334f31b8453d37b460d1e7@cyient.com> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Dear Expert,

May you please provide the solution for below query.

I have to create a log for all the update query executed in database along with its username who has executed that query.
However, I am able to log all the update queries in my pg_log file but it's not showing particular user who has run the query.

I am using PostgreSQL 9.1 with Linux platform.

Regards,
Dinesh Chandra
|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.
------------------------------------------------------------------
Mobile: +91-9953975849 | Ext 1078 |dinesh.chandra@cyient.com<mailto:%7Cdinesh.chandra@cyient.com>
Plot No. 7, NSEZ, Phase-II ,Noida-Dadri Road, Noida - 201 305,India.

view thread (3+ messages)  latest in thread

Message-ID: <c99a53b766334f31b8453d37b460d1e7@cyient.com>
Permalink:  ../c99a53b766334f31b8453d37b460d1e7@cyient.com/
Also on:    postgresql.org/message-id/c99a53b766334f31b8453d37b460d1e7@cyient.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: Dinesh.Chandra@cyient.com
  Subject: Re: Log update query along with username who has executed the same.
  In-Reply-To: <c99a53b766334f31b8453d37b460d1e7@cyient.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