Re: table size - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: table size
Date
Msg-id 20030923145541.GA12673@wolff.to
Whole thread Raw
In response to table size  (David McLoughlin <dmcloughlin@sherkin.com>)
List pgsql-general
On Tue, Sep 23, 2003 at 10:35:57 +0100,
  David McLoughlin <dmcloughlin@sherkin.com> wrote:
> I have a table in my database which can grow very quickly. Is
> there some way to partition the table so that when it reaches a certain
> size the information in it is copied to a temporary table and the
> original table is free again.
>
> Or is this possible at all. If not is there any sort of perfomance
> update I can add to speed up the queries on such a large table.

You can use partial indexes to only index a subset of the data. This
may be good enough for your needs. You will need to create new
partial indexes periodicly (and maybe remove old ones to save space).

pgsql-general by date:

Previous
From: "Egor Shipovalov"
Date:
Subject: How to get the total number of rows returned by query when using a cursor?
Next
From: Shridhar Daithankar
Date:
Subject: Re: How to get the total number of rows returned by query