| From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
|---|---|
| To: | David McLoughlin <dmcloughlin(at)sherkin(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: table size |
| Date: | 2003-09-23 14:55:41 |
| Message-ID: | 20030923145541.GA12673@wolff.to |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, Sep 23, 2003 at 10:35:57 +0100,
David McLoughlin <dmcloughlin(at)sherkin(dot)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).
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Shridhar Daithankar | 2003-09-23 14:58:57 | Re: How to get the total number of rows returned by query |
| Previous Message | Joshua D. Drake | 2003-09-23 14:52:02 | Re: [GENERAL] PostgreSQL query failed: ERROR: pg_atoi: zero-length |