Skip site navigation (1) Skip section navigation (2)

Re: Pet Peeves?

From: Greg Stark <stark(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Chris Mayfield <cmayfiel(at)cs(dot)purdue(dot)edu>, pgsql-general(at)postgresql(dot)org
Subject: Re: Pet Peeves?
Date: 2009-02-04 02:39:18
Message-ID: 4136ffa0902031839u20d6d3c0o78d6137c7e6446fb@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
On Tue, Feb 3, 2009 at 10:06 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>
> On Tue, 2009-02-03 at 15:03 -0500, Chris Mayfield wrote:
>
>> 1. Having to rewrite entire tables out to disk the first time I scan
>> them, for example:
>>
>> CREATE TABLE t1 AS ...; -- writes 100 GB to disk
>> CREATE INDEX i1 ON t1 ...; -- rewrites 100 GB to disk
>>
>> The main issue is setting the hint bits for each tuple, which IMO should
>> initially be set for "CREATE TABLE AS" statements.  To work around this
>> for now, I modified heap_insert (in heapam.c) to mark tuples as
>> committed when inserting them into newly added pages without WAL:
>
> I'll take this for 8.5.

This was proposed once already and some difficulties were identified.
Do you remember what they were?

-- 
greg

In response to

Responses

pgsql-general by date

Next:From: Greg SmithDate: 2009-02-04 02:55:17
Subject: Re: Pet Peeves?
Previous:From: Greg StarkDate: 2009-02-04 02:37:43
Subject: Re: Pet Peeves?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group