Re: DELETE and efficiency
Dan Lyke <danlyke@flutterby.com>
From: Dan Lyke <danlyke@flutterby.com>
To: pgsql-general@postgresql.org
Date: 2001-03-08T20:38:44Z
Lists: pgsql-general
Michelle Murrain writes: > Is that so? If so, that means there might be a way to do an > undelete? What is it? As I understand it there's no way to do an undelete because of the way that transactions get handled, but it does suggest that there are places where a "deleted char(1)" (or however you want to implement it) field can be quite handy, especially given the ridiculously cheap price of disk space (modulo backup...) nowadays. In applications, confirmation is a cop-out for those too lazy to implement undo (okay, that's overstating the case a bit), but structuring your data to acknowledge this at the beginning can be a worthwhile exercise. Dan