Re: Long term read-only records? - Mailing list pgsql-general

From Robert Treat
Subject Re: Long term read-only records?
Date
Msg-id 1048796255.13853.1277.camel@camel
Whole thread Raw
In response to Long term read-only records?  (Jason Hihn <jhihn@paytimepayroll.com>)
Responses Re: Long term read-only records?
List pgsql-general
On Wed, 2003-03-26 at 11:34, Jason Hihn wrote:
> Is there a way to make a record read-only for months or years? My intent is
> that after a cutoff (a program can run making rows r/o) existing records can
> no longer be modified without unlocking first. User security is
> insufficient, since that only applies to tables. I'd rather not have to
> maintain a R/O flag (or date) in code, because it relies on correct,
> voluntary implementation every time. I'd like something more enforceable
> then that, and that has me looking to the DBMS

Create a rule or trigger on the table to check the age of a date column
and then either disregard or allow updates.

Robert Treat


pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Data conversion in query
Next
From: Jason Hihn
Date:
Subject: Re: Long term read-only records?