Re: How to set an expiration date for a WHOLE user account - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: How to set an expiration date for a WHOLE user account
Date
Msg-id 20050615141115.GA7595@wolff.to
Whole thread Raw
In response to Re: How to set an expiration date for a WHOLE user account  (Zlatko Matić <zlatko.matic1@sb.t-com.hr>)
List pgsql-general
On Wed, Jun 15, 2005 at 13:34:39 +0200,
  Zlatko Mati? <zlatko.matic1@sb.t-com.hr> wrote:
> Hi.
> Concerning Együd's question, I also wanted to ask about setting expiration
> date for database. But, I would like to set validity in sense of certain
> actions.
> For example, I would like to prevent adding new records after expiration,
> but would allow viewing existing records....
> Is there any way to acomplish that?

Possibly you could do what you want by using AFTER triggers on all of the
tables. This will only be practical if the users with update access do
not own the tables.

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Database became very slow(Help PLS)
Next
From: Tom Lane
Date:
Subject: Re: Deadlock Problem