Re: question on writing a function

From: Moshe Jacobson <moshe(at)neadwerx(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Aaron Burnett <Aaron(dot)Burnett(at)us(dot)dunnhumby(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: question on writing a function
Date: 2014-01-22 19:12:49
Message-ID: CAJ4CxLmSW+_MdeQnPN8_+5v74Vvd4kKciKaKSDP+m5iiscdZ1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 22, 2014 at 12:08 PM, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:

> What I would advise in this case is to organize deleted user IDs in a
> deletion queue. You do that by making a 'users to be deleted table'
> where you store the users pending deletion (which is the one and only
> thing that happens at trigger time). Then you set up batch process
> (say, via cron) that cleans out the data at a convenient time.
>

Agreed - Your active_status could have three statuses - Active, Inactive,
and Deleted. The front end switches it to Inactive, and the cron job looks
for all Inactive users, deletes their data and sets them to Deleted.

Moshe Jacobson
Manager of Systems Engineering, Nead Werx Inc. <http://www.neadwerx.com>
2323 Cumberland Parkway · Suite 201 · Atlanta, GA 30339

"Quality is not an act, it is a habit." -- Aristotle

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2014-01-22 19:38:04 Re: CREATE EXTENSION does not seem to work in 9.2
Previous Message Susan Cassidy 2014-01-22 19:07:24 Re: CREATE EXTENSION does not seem to work in 9.2