Recreate big table

From: Gábriel Ákos <akos(dot)gabriel(at)i-logic(dot)hu>
To: pgsql-performance(at)postgresql(dot)org
Subject: Recreate big table
Date: 2007-02-09 18:24:59
Message-ID: 45CCBC7B.3090004@i-logic.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

We have a quite big table, which is heavily used by our online clients.
The table has several indexes, but no other relation to other tables.
We have an import process, which can fill/update this table.
The full import takes 1 hour, and this is very long.
We are thinking of doing the full import in another table and then just
"swapping" the two tables.
What will happen to our indexes? What will happen to our current
transactions (only read) ? What will the user see? :)
Should we recreate the indexes after the swap is done?

Btw is there a good practice doing this kind of work?

Thanks in advance,
Akos Gabriel

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Benjamin Minshall 2007-02-09 18:36:03 Re: stats collector process high CPU utilization
Previous Message Tom Lane 2007-02-09 16:33:06 Re: stats collector process high CPU utilization