pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
deactivate user accounts not used within the last 90 days.
2+ messages / 2 participants
[nested] [flat]

* deactivate user accounts not used within the last 90 days.
@ 2020-12-03 20:51 Pepe TD Vo <pepevo@yahoo.com>
  2020-12-03 21:27 ` Re: deactivate user accounts not used within the last 90 days. Ron <ronljohnsonjr@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Pepe TD Vo @ 2020-12-03 20:51 UTC (permalink / raw)
  To: Pgsql-admin <pgsql-admin@lists.postgresql.org>

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?
regards,
Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: deactivate user accounts not used within the last 90 days.
  2020-12-03 20:51 deactivate user accounts not used within the last 90 days. Pepe TD Vo <pepevo@yahoo.com>
@ 2020-12-03 21:27 ` Ron <ronljohnsonjr@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Ron @ 2020-12-03 21:27 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

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.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-12-03 21:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 20:51 deactivate user accounts not used within the last 90 days. Pepe TD Vo <pepevo@yahoo.com>
2020-12-03 21:27 ` Ron <ronljohnsonjr@gmail.com>

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