Re: too much WAL volume

From: "Zeugswetter Andreas ADI SD" <ZeugswetterA(at)spardat(dot)at>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>, "Koichi Suzuki" <suzuki(dot)koichi(at)oss(dot)ntt(dot)co(dot)jp>
Subject: Re: too much WAL volume
Date: 2007-04-26 10:42:41
Message-ID: E1539E0ED7043848906A8FF995BDA57901F403BD@m0143.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


> > Writing to a different area was considered in pg, but there were
more
> > negative issues than positive.
> > So imho pg_compresslog is the correct path forward. The current
> > discussion is only about whether we want a more complex
pg_compresslog
> > and no change to current WAL, or an increased WAL size for a less
> > complex implementation.
> > Both would be able to compress the WAL to the same "archive log"
size.
>
> Huh? As conceived, pg_compresslog does nothing to lower log
> volume for general purposes, just on-disk storage size for
> archiving. It doesn't help us at all with the tremendous
> amount of log we put out for an OLTP server, for example.

Ok, that is not related to the original discussion though.
I have thus changed the subject, and removed [PATCHES].

You cannot directly compare the pg WAL size with other db's since they
write parts to other areas (e.g. physical log in Informix). You would
need to include those writes in a fair comparison.
It is definitely not true, that writing to a different area has only
advantages. The consensus was, that writing the page images to the WAL
has more pro's. We could revisit the pros and cons though.

Other options involve special OS and hardware (we already have that), or
accepting a high risc of needing a
restore after power outage (we don't have that, because we use no
mechanism to detect such a failure).

I am not sure that shrinking per WAL record size (other than the full
page images), e.g. by only logging changed bytes and not whole tuples,
would have a huge impact on OLTP tx/sec, since the limiting factor is
IO's per second and not Mb per second. Recent developments like HOT seem
a lot more promising in this regard since they avoid IO.

Andreas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-04-26 10:47:02 Re: [Pgbuildfarm-members] [Fwd: PGBuildfarm member narwhal Branch HEAD Status changed from OK to InstallCheck failure]
Previous Message Michael Meskes 2007-04-26 10:07:41 Re: ECPG failure on BF member Vaquita (Windows Vista)

Browse pgsql-patches by date

  From Date Subject
Next Message Zoltan Boszormenyi 2007-04-26 11:13:38 New version of GENERATED/IDENTITY, was Re: parser dilemma
Previous Message Gregory Stark 2007-04-26 02:25:46 updated SORT/LIMIT patch