pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: deactivate user accounts not used within the last 90 days.
Date: Thu, 3 Dec 2020 15:27:32 -0600
Message-ID: <3f8e218a-8894-3321-559a-376000c484e7@gmail.com> (raw)
In-Reply-To: <1562396089.2669945.1607028689050@mail.yahoo.com>
References: <1562396089.2669945.1607028689050.ref@mail.yahoo.com>
	<1562396089.2669945.1607028689050@mail.yahoo.com>

On 12/3/20 2:51 PM, Pepe TD Vo wrote:
> Hi
>
>
> May I know how to deactivate the user account not used within the last 
> days in Postgres?  Is there a function for password lifetime liked Oracle?

https://www.postgresql.org/docs/12/sql-alterrole.html

Look at the VALID UNTIL clause.

-- 
Angular momentum makes the world go 'round.

view thread (2+ messages)

Message-ID: <3f8e218a-8894-3321-559a-376000c484e7@gmail.com>
Permalink:  ../3f8e218a-8894-3321-559a-376000c484e7@gmail.com/
Also on:    postgresql.org/message-id/3f8e218a-8894-3321-559a-376000c484e7@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: deactivate user accounts not used within the last 90 days.
  In-Reply-To: <3f8e218a-8894-3321-559a-376000c484e7@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox