Re: Restrict connection from pgadmin.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pawan Sharma <pawanpg0963(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Ravi Krishna <ravikrishna(at)vivaldi(dot)net>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Restrict connection from pgadmin.
Date: 2020-02-04 06:07:06
Message-ID: 16203.1580796426@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pawan Sharma <pawanpg0963(at)gmail(dot)com> writes:
> 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.

I think onlookers are still completely mystified as to why you consider
this a useful activity.

pgadmin is nothing but a GUI. Whatever can be done through it can be
done equally well through psql, or any other client software. So if
you're looking for security against unwanted SQL commands, you're going
about it the wrong way (better to look at preventing logins of privileged
accounts, and/or use of SQL permissions to limit what can be done).
If your objective is something else, you haven't explained what that is.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Moreno Andreo 2020-02-04 12:40:12 Re: Should I reinstall over current installation?
Previous Message Pawan Sharma 2020-02-04 05:55:14 Re: Restrict connection from pgadmin.