Can inherited tables help in this case?

From: Avi Schwartz <avi(at)CFFtechnologies(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Can inherited tables help in this case?
Date: 2003-06-19 05:37:59
Message-ID: 2F9BEEE0-A218-11D7-AC40-000393AE5044@CFFtechnologies.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

We have a table, lets say of products. Some products get deleted from
time to time, using a soft delete (i.e. they have a date deleted
attribute which is set when the the record is deleted. We never
physically delete the records. Is there a way that table inheritance
can be used to help us speed up queries? In other words, if we had a
table of products and a table of deleted_product which inherits from
products, can we create initially a record in the products table and
when it is marked as deleted make it a deleted_product record instead
of a product record so we select on products only?

Avi

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2003-06-19 05:54:28 Re: A creepy story about dates. How to prevent it?
Previous Message Tim Middleton 2003-06-19 04:45:51 Re: PostgreSQL calibration