Re: [HACKERS] WAL logging freezing

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>, "Simon Riggs" <simon(at)2ndquadrant(dot)com>, "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, <pgsql-hackers(at)postgresql(dot)org>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] WAL logging freezing
Date: 2006-10-31 19:49:27
Message-ID: 877iygz2ns.fsf@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> The added WAL volume should be pretty minimal, because only tuples that have
> gone untouched for a long time incur extra work.

That seems like a weak point in the logic. It seems like it would make VACUUM
which is already an i/o hog even more so. Perhaps something clever can be done
with vacuum_cost_delay and commit_siblings.

Something like inserting the delay between WAL logging and syncing the log and
writing to the heap. So if another transaction commits in the meantime we can
skip the extra fsync and continue.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2006-10-31 19:56:59 Re: [HACKERS] WAL logging freezing
Previous Message Alvaro Herrera 2006-10-31 19:29:00 Re: [HACKERS] Index greater than 8k

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2006-10-31 19:56:59 Re: [HACKERS] WAL logging freezing
Previous Message Jim C. Nasby 2006-10-31 17:27:27 Re: --single-transaction doc clarification