Re: PostgreSQL is extremely slow on Windows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Magnus Hagander <mha(at)sollentuna(dot)net>, "Vig, Sandor (G/FI-2)" <Sandor(dot)Vig(at)audi(dot)hu>, pgsql-performance(at)postgresql(dot)org
Subject: Re: PostgreSQL is extremely slow on Windows
Date: 2005-02-23 22:56:41
Message-ID: 23063.1109199401@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Neil Conway <neilc(at)samurai(dot)com> writes:
> There is a TODO item about allowing the delaying of WAL writes. If we
> maintain the WAL invariant (that is, a WAL record describing a change
> must hit disk before the change itself does) but simply don't flush the
> WAL at transaction commit, we should be able to get better performance
> without the risk of database corruption (so we would need to keep pages
> modified by the committed transaction pinned in memory until the WAL has
> been flushed, which might be done on a periodic basis).

That interlock already exists, in the form of the bufmgr LSN logic.

I think this "feature" might be as simple as

XLogFlush(recptr);

becomes

/* Must flush if we are deleting files... */
if (PerCommitFlush || nrels > 0)
XLogFlush(recptr);

in RecordTransactionCommit.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Christopher Browne 2005-02-24 03:24:57 Re: Peformance Tuning Opterons/ Hard Disk Layout
Previous Message Neil Conway 2005-02-23 22:35:47 Re: PostgreSQL is extremely slow on Windows