Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iyfks-0006uR-5j for pgsql-general@arkaria.postgresql.org; Mon, 03 Feb 2020 17:43:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iyfkq-00035x-Tp for pgsql-general@arkaria.postgresql.org; Mon, 03 Feb 2020 17:43:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iyfkq-00035q-GJ for pgsql-general@lists.postgresql.org; Mon, 03 Feb 2020 17:43:24 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iyfko-00027u-73 for pgsql-general@lists.postgresql.org; Mon, 03 Feb 2020 17:43:23 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C787A754; Mon, 3 Feb 2020 12:43:20 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 03 Feb 2020 12:43:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=Y rWq9DdsVIJUTojXHGh9HmhRUTu05hHEhwT+FMgL/QI=; b=pdJBjX4pYrGouUBh7 M3a7dfi+PomJoBw7UdtuIqkxZURZKOmutxzIvhsuH2vX3cdnwNh67zwQ1+hgAouM FtjVeSXRriK/G+bH1aNvVSvmDjrJtiU6oDxxg8n8FhGEeG76PI5BQJxJJoGS85J3 iyYKnrSlD89Ol6IIODWw0KXL4/o5U84RDdEJWjwouVmMcx3S2YXCqQASerOezhuw UgP0pElhT1VVTLIhiOBvS6dr8YsVAPEiJ0itKqvM0q2OJu3hQuTVY0jXegzKkW+H A/w7NJMuKvIlCxH0ve6DmPnGxDt0WO7AGfNN2riRQoLW11PX2JWhWViO3iUocHhq XGoLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=YrWq9DdsVIJUTojXHGh9HmhRUTu05hHEhwT+FMgL/ QI=; b=lsD/ReaBreud2NiO5ox3IXvrbhr+Nk50/0yfbI7EzF3pKQOLUfONHe9FF uUD8LL7pPc8joqfyU7tCKTB0c4U6rkQ5rlz5QF91y8J2kYYfGCLg+dY7jiyRkSaY 3/D4ceqXkrVyGXoWlXhMsUVarVVujqytIWxryzaGfMoJkmdV0UjqaBwclZHe5PqK /fCUE1Yx3ZR8/vk4n4YAR22LoXBml3KI67GAOfqVwXkdVEsAI+VsHxEhKp7SU7Gz jSctBz57RQ7yGkB8mtlBIOCS9/ApTzvghihMTTcY2xE8bEmfqH7XSsltRMQZIcE2 hKsDAQWyD+7b7fYHhM5YBWusnF2wQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgeejgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejgedrleeg rdejfedrvddvvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id AA971328005E; Mon, 3 Feb 2020 12:43:19 -0500 (EST) Subject: Re: Restrict connection from pgadmin. To: Ravi Krishna Cc: Pawan Sharma , pgsql-general@lists.postgresql.org References: <993e25c3-0389-3f32-2b0c-a3d250e09a10@aklaver.com> From: Adrian Klaver Message-ID: Date: Mon, 3 Feb 2020 09:43:18 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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