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 1iyf85-0005p5-7I for pgsql-general@arkaria.postgresql.org; Mon, 03 Feb 2020 17:03:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iyf84-0001HD-3n for pgsql-general@arkaria.postgresql.org; Mon, 03 Feb 2020 17:03:20 +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 1iyf82-0001H5-52 for pgsql-general@lists.postgresql.org; Mon, 03 Feb 2020 17:03:19 +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 1iyf7z-0001jp-1p for pgsql-general@lists.postgresql.org; Mon, 03 Feb 2020 17:03:17 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 686A27C0; Mon, 3 Feb 2020 12:03:13 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 03 Feb 2020 12:03:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=t JJnEkSMse1PtBJd1c+I9wrR383jC0eWOrNrE6d5kb0=; b=F6qeMjjt/50LBuQYJ 9ng27SSxsFQ3GpJFFGiAX8ic95VGlYMOiX+lODzzjCDYKLAcy2Ty11z7OpP+4OFe QXgRsnMDSmEZ4q00QMkxWGqWWWas6Bb+Wbv3gn1J7YnOSGAUgL220Mc7LvgxRlUk eD+TGq2UOi8pwGKV2987LpnhMYuZYryEdiiXokYdi1fk9OmGvlqVCRSBPPuVftXb 2bQL4dw797yKeHjoe2XXM4OduLlE3B/olUuJJSzT2OpN/WdAd15pz3PuF92htFCJ h9SF++x9J/q9VlkQbyFDo23EXgPz1X6prHpeIVx9Kbk3w8SxMMtvcoa4lnfbA9VD DGNfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=tJJnEkSMse1PtBJd1c+I9wrR383jC0eWOrNrE6d5k b0=; b=BU2Joa1vSxSblwYP8jOAX5YSAzCfW3D9FspJTMajBX9y0JFgyZw6O3h51 tA/cnZGJv5mQ/bkjmZExjEPSWJAMJhoK1PfDYs00CH8bMas4z2WW6uRQZXF2Fg2D 1m3+difT5Dx4LVwXRlVDQ6R4TyGe9kLiZ6e98OFitlgvWTTU+Wmqpyrj+ROC95GT IbaPLE8fnytWuiTePSBhKkHKWEcA6k8qUnuKhHs53E38FZvi2DJHbveQsawmnALk m+vI81uEYK7Nj5sWI1xPhMAlHMSEBdGParam+KA03OcL8H8QMaeJaO15FdGBNECz nX8LnF+Ds9PDB/evFOWNAfUw9vnQw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgeejgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepphhoshhtghhrvghsqh hlrdhorhhgnecukfhppeejuddrvdduvddruddvledrudelfeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 71C8C30600DC; Mon, 3 Feb 2020 12:03:12 -0500 (EST) Subject: Re: Restrict connection from pgadmin. To: Pawan Sharma , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <993e25c3-0389-3f32-2b0c-a3d250e09a10@aklaver.com> Date: Mon, 3 Feb 2020 09:03:11 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/2/20 10:47 PM, Pawan Sharma wrote: > Hi All, > > Is there any way to restrict the connection only from pgadmin???  The > same user can connect through application but can't from pgadmin.. Or > any logon triggers..??? > 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 -- Adrian Klaver adrian.klaver@aklaver.com