Re: Restrict connection from pgadmin. - Mailing list pgsql-general

From Pawan Sharma
Subject Re: Restrict connection from pgadmin.
Date
Msg-id CAKqG8NURUPNrQtB07yW8rDDAVeo1zzEtj+-j87Tkoak2GmHWQg@mail.gmail.com
Whole thread Raw
In response to Re: Restrict connection from pgadmin.  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Restrict connection from pgadmin.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Yes I will show the pgadmin in stat_activity but how  can block that.. 

I think I need to create a job to terminate the pgadmin connections and schedule it for  every 5 min and so that I will check any new connections from pgadmin. 

On Mon, 3 Feb 2020, 11:13 pm Adrian Klaver, <adrian.klaver@aklaver.com> wrote:
On 2/3/20 9:15 AM, Ravi Krishna wrote:
>>
>> Not that I know of. pgAdmin is just another client so you just have the methods available here:
>>
>> https://www.postgresql.org/docs/12/auth-pg-hba-conf.html
>>
>
> will the col application_name from pg_stat_activity list pgadmin as pgadmin. if yes, then the closest one can achieve

Make a connection from pgAdmin and see.

> is to have a daemon process wake up every 1 min or so and terminate any pgadmin app.

I can do a lot of damage in a minute.




--
Adrian Klaver
adrian.klaver@aklaver.com

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Should I reinstall over current installation?
Next
From: Tom Lane
Date:
Subject: Re: Restrict connection from pgadmin.