Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dD9Bn-0005tm-5T for pgsql-performance@arkaria.postgresql.org; Tue, 23 May 2017 12:45:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dD9Bm-00081Z-Ec for pgsql-performance@arkaria.postgresql.org; Tue, 23 May 2017 12:45:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dD9A0-0004pv-5g for pgsql-performance@postgresql.org; Tue, 23 May 2017 12:43:36 +0000 Received: from mxgate01.infotech-enterprises.com ([110.76.168.168] helo=mxgate01.cyient.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dD99u-0003fT-7B for pgsql-performance@postgresql.org; Tue, 23 May 2017 12:43:33 +0000 X-IronPort-AV: E=Sophos;i="5.38,382,1491244200"; d="scan'208,217";a="73283077" Received: from unknown (HELO CYINMBX5.CORP.CYIENT.COM) ([172.17.4.165]) by mxgate01.cyient.com with ESMTP/TLS/AES256-SHA256; 23 May 2017 18:11:46 +0530 Received: from CYINMBX4.CORP.CYIENT.COM (172.17.4.164) by CYINMBX5.CORP.CYIENT.COM (172.17.4.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.27; Tue, 23 May 2017 18:12:52 +0530 Received: from CYINMBX4.CORP.CYIENT.COM ([fe80::596e:284a:a6f6:e6d4]) by CYINMBX4.CORP.CYIENT.COM ([fe80::596e:284a:a6f6:e6d4%19]) with mapi id 15.01.0544.027; Tue, 23 May 2017 18:12:52 +0530 From: Dinesh Chandra 12108 To: "pgsql-performance@postgresql.org" CC: Dinesh Chandra 12108 Subject: Log update query along with username who has executed the same. Thread-Topic: Log update query along with username who has executed the same. Thread-Index: AdLTwhaNZXarrXNUTCq2ZEFdIWwBgA== Date: Tue, 23 May 2017 12:42:52 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.4.81] Content-Type: multipart/alternative; boundary="_000_c99a53b766334f31b8453d37b460d1e7cyientcom_" MIME-Version: 1.0 X-Pg-Spam-Score: -3.5 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org --_000_c99a53b766334f31b8453d37b460d1e7cyientcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 Plot No. 7, NSEZ, Phase-II ,Noida-Dadri Road, Noida - 201 305,India. --_000_c99a53b766334f31b8453d37b460d1e7cyientcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 par= ticular user who has run the query.

 

I am using PostgreSQL = 9.1 with Linux platform.

 

Regards,

Dinesh Chandra

|Database administrator (Oracle/Postg= reSQL)| Cyient Ltd. Noida.

----------------------------------= --------------------------------

Mobile: +91-9953975849 | Ext 1078 |dinesh.chandra@cyient.com

Plot No. 7, NSEZ, Phase-II ,Noida-Dad= ri Road, Noida - 201 305,India.

 

--_000_c99a53b766334f31b8453d37b460d1e7cyientcom_--