From: Gábriel Ákos <akos.gabriel@i-logic.hu>
To: pgsql-performance@postgresql.org
Subject: Recreate big table
Date: Fri, 09 Feb 2007 19:24:59 +0100
Message-ID: <45CCBC7B.3090004@i-logic.hu> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: akos.gabriel@i-logic.hu
Subject: Re: Recreate big table
In-Reply-To: <45CCBC7B.3090004@i-logic.hu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox