Обсуждение: deactivate user accounts not used within the last 90 days.

Поиск
Список
Период
Сортировка

deactivate user accounts not used within the last 90 days.

От
Pepe TD Vo
Дата:
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.EmojiEmojiEmoji
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



Re: deactivate user accounts not used within the last 90 days.

От
Ron
Дата:
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.