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 1hOjdi-0004C0-HN for pgsql-admin@arkaria.postgresql.org; Thu, 09 May 2019 14:03:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hOjdh-00051p-25 for pgsql-admin@arkaria.postgresql.org; Thu, 09 May 2019 14:03:13 +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 1hOjdg-0004ui-JD for pgsql-admin@lists.postgresql.org; Thu, 09 May 2019 14:03:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOjda-0002vO-Kf for pgsql-admin@lists.postgresql.org; Thu, 09 May 2019 14:03:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x49E3438003203; Thu, 9 May 2019 10:03:04 -0400 From: Tom Lane To: Hoa Phan cc: pgsql-admin@lists.postgresql.org Subject: Re: How to create a postgres user that auth by AUTH_REQ_MD5 In-reply-to: References: Comments: In-reply-to Hoa Phan message dated "Thu, 09 May 2019 17:48:00 +1000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3199.1557410584.1@sss.pgh.pa.us> Date: Thu, 09 May 2019 10:03:04 -0400 Message-ID: <3202.1557410584@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hoa Phan writes: > How do I create user that required AUTH_REQ_MD5 or config database so that > it require AUTH_REQ_MD5 ? That's determined by your pg_hba.conf rules. If you really want to have just one user acting that way, you can use a rule that keys on user name; but it's an unusual thing to do I think. https://www.postgresql.org/docs/current/auth-pg-hba-conf.html regards, tom lane