Re: CREATE TABLE, load and freezing

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "Pavan Deolasee" <pavan(dot)deolasee(at)gmail(dot)com>
Cc: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, "PostgreSQL-development Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CREATE TABLE, load and freezing
Date: 2008-02-28 10:20:21
Message-ID: 47C68AE5.1020707@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavan Deolasee wrote:
> On Thu, Feb 28, 2008 at 3:05 PM, Florian G. Pflug <fgp(at)phlo(dot)org> wrote:
>> If that works, then we might also want to set the visibility hint bits.
>
> Oh yes. Especially because random time-scattered index scans on
> the table can actually generate multiple writes of a page of a
> read-only table.

I remember that Simon tried to set hint bits as well when he wrote the
"skip WAL on new table" optimization, but there was some issues with it.
I can't remember the details, but I think it was related to commands in
the same transaction seeing the tuples too early. Like triggers, or
portals opened before the COPY.

Hint bits is the critical part of the issue. If you can set the hint
bits, then you can freeze as well, but freezing without setting hint
bits doesn't buy you much.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jochem van Dieten 2008-02-28 10:25:01 Re: UUID data format 4x-4x-4x-4x-4x-4x-4x-4x
Previous Message Pavan Deolasee 2008-02-28 10:16:50 Re: CREATE TABLE, load and freezing