Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s62Zq-009it3-FY for pgsql-admin@arkaria.postgresql.org; Sun, 12 May 2024 06:20:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s62Zo-009Jpk-Ga for pgsql-admin@arkaria.postgresql.org; Sun, 12 May 2024 06:20:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s62Zo-009Jpb-5A for pgsql-admin@lists.postgresql.org; Sun, 12 May 2024 06:20:52 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s62Zl-000aqi-VK for pgsql-admin@postgresql.org; Sun, 12 May 2024 06:20:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 44C6KmEf182423; Sun, 12 May 2024 02:20:48 -0400 From: Tom Lane To: Julien Rouhaud cc: Naveed Iftikhar , "pgsql-admin@postgresql.org" Subject: Re: While creating a user in PostgreSQL 15 getting ERROR: require a VALID UNTIL option In-reply-to: References: <89AA09AC-A627-4EAB-8B0C-0EE184BD56A2@elevated-dev.com> <15DE7820-429C-4163-BC59-E7608CF228B8@elevated-dev.com> <808751752.1562387.1715492644219@mail.yahoo.com> <160028138.1567187.1715493876270@mail.yahoo.com> Comments: In-reply-to Julien Rouhaud message dated "Sun, 12 May 2024 14:09:40 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <182421.1715494848.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 12 May 2024 02:20:48 -0400 Message-ID: <182422.1715494848@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud writes: > On Sun, May 12, 2024 at 06:04:36AM GMT, Naveed Iftikhar wrote: >> =C2=A0 Thanks, I think previous DBA has created=C2=A0credcheck extensio= n. How can I remove or bypass or create the user with valid until ..=C2=A0= even I provide the valid until but still getting the error. > You should look at the documentation for the exact syntax to use: > https://github.com/MigOpsRepos/credcheck This is pretty rich, because not only is credcheck making up this valid-until date on its own, but then it's objecting to what it made up. 'Jan 31 2030' is a perfectly valid date according to Postgres, and "require a VALID UNTIL option with a date beyond 120 days" is not an error that appears anywhere in core Postgres, even if we somehow failed to do the implied date arithmetic correctly. I think your answer is to remove that extension, preferably with gloves and tongs. regards, tom lane