pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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



view thread (2+ messages)  latest in thread

Message-ID: <45CCBC7B.3090004@i-logic.hu>
Permalink:  ../45CCBC7B.3090004@i-logic.hu/
Also on:    postgresql.org/message-id/45CCBC7B.3090004@i-logic.hu

 · 

reply

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