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

Re: TOAST performance (was Re: [GENERAL] Delete Performance)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "P(dot)J(dot) \"Josh\" Rovero" <rovero(at)sonalysts(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: TOAST performance (was Re: [GENERAL] Delete Performance)
Date: 2001-12-20 22:00:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-hackers
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to


pgsql-hackers by date

Next:From: Bruce MomjianDate: 2001-12-20 23:15:45
Subject: Status on RC1?
Previous:From: Bruce MomjianDate: 2001-12-20 21:21:25
Subject: Re: SunOS patch for memcmp()

pgsql-general by date

Next:From: Larry RosenmanDate: 2001-12-20 22:19:00
Subject: Re: template question . . .
Previous:From: Bruce MomjianDate: 2001-12-20 21:54:52
Subject: Re: Can't use subselect in check constraint

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