pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: amandeep singh <singh_a@live.in>
To: Naveen Kumar <naveenchowdaryon@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Terminate connections using non-superuser
Date: Thu, 3 Aug 2017 08:05:38 +0000
Message-ID: <MA1PR01MB074816CC6D93B840ED36B2E280B10@MA1PR01MB0748.INDPRD01.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CADk76joS2q_GyyHwy+tejo=+gPmGkAGHskWB_xVp4PyKgHjxxQ@mail.gmail.com>
References: <MA1PR01MB0748C1F4891FAC8DFB843E6480B00@MA1PR01MB0748.INDPRD01.PROD.OUTLOOK.COM>
	<CADk76joS2q_GyyHwy+tejo=+gPmGkAGHskWB_xVp4PyKgHjxxQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi Naveen


pg_terminate_backend is working now with the solution suggested by you but I am still searching for the solution to view the queries executed by any other user using pg_stat_activity .


@scott: In my case I can't change the name of the default function/view as it is needed with the same name to run using tool.


Thanks both of you for your response.


Thanks and Regards:
Amandeep Singh
________________________________
From: Naveen Kumar <naveenchowdaryon@gmail.com>
Sent: Wednesday, August 2, 2017 6:15:27 PM
To: amandeep singh
Cc: pgsql-admin
Subject: Re: [ADMIN] Terminate connections using non-superuser

Yes, non-superuser can do this. but user should have privilege to this.

GRANT pg_signal_backend TO user;

Thanks & Regards,
Naveen Kumar .M,
Sr. PostgreSQL Database Administrator,
Mobile: 7755929449.
My attitude will always be based on how you treat me.


On Wed, Aug 2, 2017 at 6:06 PM, amandeep singh <singh_a@live.in<mailto:singh_a@live.in>> wrote:

Hi All


I have a requirement where I need a non-superuser who can view (pg_stat_activity) and terminate (pg_terminate_backend) connections of other users. Is it possible to give such privileges to non-superuser?


Postgres Version :PostgreSQL9.6




Thanks and Regards:
Amandeep Singh

view thread (4+ messages)

Message-ID: <MA1PR01MB074816CC6D93B840ED36B2E280B10@MA1PR01MB0748.INDPRD01.PROD.OUTLOOK.COM>
Permalink:  ../MA1PR01MB074816CC6D93B840ED36B2E280B10@MA1PR01MB0748.INDPRD01.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/MA1PR01MB074816CC6D93B840ED36B2E280B10@MA1PR01MB0748.INDPRD01.PROD.OUTLOOK.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-admin@postgresql.org
  Cc: singh_a@live.in, naveenchowdaryon@gmail.com
  Subject: Re: Terminate connections using non-superuser
  In-Reply-To: <MA1PR01MB074816CC6D93B840ED36B2E280B10@MA1PR01MB0748.INDPRD01.PROD.OUTLOOK.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