Re: table size - Mailing list pgsql-general

From Shridhar Daithankar
Subject Re: table size
Date
Msg-id 1379.192.168.7.161.1064312645.squirrel@mail4.pspl.co.in
Whole thread Raw
In response to table size  (David McLoughlin <dmcloughlin@sherkin.com>)
List pgsql-general
Hi,

> 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.

You can create a view and update the view definition periodically to
add/remove tables from view definition. Your data insertion should be
pointed to a new table after specific period.

That way you can achieve table partitioning. Since DDLs in postgresql are
transactable, it should be absolutely transparent to the application and
other users.

HTH

 Shridhar

pgsql-general by date:

Previous
From: Jason Godden
Date:
Subject: Re: table size
Next
From: "Nikola Milutinovic"
Date:
Subject: IGNORE: test