Re: tackling full page writes

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: tackling full page writes
Date: 2011-05-25 14:13:30
Message-ID: 201105251413.p4PEDUx16395@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas wrote:
> That idea has the additional advantage of confusing the level of
> detail of our WAL logging (minimal vs. archive vs. hot standby) with
> the mechanism used to protect against torn pages (full page writes vs.
> idempotent WAL records vs. prayer). When they set it wrong and
> destroy their system, we can tell them it's their own fault for not
> configuring the system properly! Bwahahahaha!

I love it! Create confusing configuration options and blame the user!

> In all seriousness, I can't imagine that we'd make this
> user-configurable in the first place, since that would amount to
> having two sets of WAL records each of which would be even less well
> tested than what we have now; and for a project this complex, we
> probably shouldn't even consider changing things that seem to work now
> unless the new system is clearly better than the old.
>
> > Idempotent does seem like the most promising idea.
>
> I tend to agree with you, but I'm worried it won't actually work out
> to a win. By the time we augment the records with enough additional
> information we may have eaten up a lot of the benefit we were hoping
> to get.

This is where I was confused. Our bad case now is when someone modifies
one row on a page between checkpoints --- instead of writing 400 bytes,
we write 8400. What portion of between-checkpoint activity writes more
than a few rows to a page? I didn't think many, except for COPY.
Ideally we could switch in and out of this mode per page, but that seems
super-complicated.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2011-05-25 14:17:09 Re: New/Revised TODO? Gathering actual read performance data for use by planner
Previous Message Pavan Deolasee 2011-05-25 14:11:51 Re: Proposal: Another attempt at vacuum improvements