Re: table size - Mailing list pgsql-general

From Jason Godden
Subject Re: table size
Date
Msg-id 200309232008.50334.jasongodden@optushome.com.au
Whole thread Raw
In response to table size  (David McLoughlin <dmcloughlin@sherkin.com>)
List pgsql-general
Hi David,

I'd say that if it is a new app develop it with 7.4 and use statement level
triggers otherwise you could use normal triggers and perform a count each
time but that will slow things down dramatically.

Other option is to use cron and write a daemon/script to periodically check
the size of the table.  Without statement level triggers this would probably
be the most efficient.

Rgds,

Jason

On Tue, 23 Sep 2003 07:35 pm, David McLoughlin 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.
>
> thanks
>
> D
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org


pgsql-general by date:

Previous
From: David McLoughlin
Date:
Subject: table size
Next
From: "Shridhar Daithankar"
Date:
Subject: Re: table size