Re: CREATE TABLE, load and freezing

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: "Pavan Deolasee" <pavan(dot)deolasee(at)gmail(dot)com>
Cc: "PostgreSQL-development Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CREATE TABLE, load and freezing
Date: 2008-02-28 09:55:07
Message-ID: 20080228183958.5F5A.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


"Pavan Deolasee" <pavan(dot)deolasee(at)gmail(dot)com> wrote:

> In a typical scenario, user might create a table and load data in the table as
> part of a single transaction (e.g pg_restore). In this case, it would help if we
> create the tuples in the *frozen* state to avoid any wrap-around related issues
> with the table.

Sounds cool. I recommended users to do VACUUM FREEZE just after initial
loading, but we can avoid it with your method.

> Without this, very large read-only tables would require one round of
> complete freezing if there are lot of transactional activities in the other parts
> of the database. And when that happens, it would generate lots of unnecessary
> IOs on these large tables.

To make things worse, the freezing day comes at once because the first restore
is done in a single or near transactions; The wraparound timings of many
tables are aligned at the same time. Freezing copy will be the solution.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavan Deolasee 2008-02-28 10:01:00 Re: CREATE TABLE, load and freezing
Previous Message Dimitri Fontaine 2008-02-28 09:45:21 Re: Varlena Type Creation