Re: TOAST performance (was Re: [GENERAL] Delete Performance) - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: TOAST performance (was Re: [GENERAL] Delete Performance)
Date
Msg-id 200112202200.fBKM0vx25436@candle.pha.pa.us
Whole thread Raw
In response to Re: TOAST performance (was Re: [GENERAL] Delete Performance)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Is it because we take a snapshot of the page before we write it in case
> > we only write part of the page?
> 
> AFAIR, the partial-page-write problem is the entire reason for doing it.
> If we could be certain that writes to datafile pages were atomic, we'd
> not need this.
> 
> Of course we can't be certain of that.  But I'm wondering if there isn't
> a cheaper solution.

I have added these TODO items to summarize this discussion:

* Reduce number of pre-page WAL writes; they exist only to gaurd against partial page writes
* Turn off pre-page writes if fsync is disabled (?)

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Karel Zak
Date:
Subject: Re: tkConfig.sh vs. ./configure
Next
From: Bruce Momjian
Date:
Subject: Status on RC1?