Re: table size

From: Jason Godden <jasongodden(at)optushome(dot)com(dot)au>
To: David McLoughlin <dmcloughlin(at)sherkin(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: table size
Date: 2003-09-23 10:08:50
Message-ID: 200309232008.50334.jasongodden@optushome.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • table size at 2003-09-23 09:35:57 from David McLoughlin

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2003-09-23 10:24:05 Re: table size
Previous Message David McLoughlin 2003-09-23 09:35:57 table size