Re: [PERFORM] WAL Optimisation - configuration and usage

From: "Simon Riggs" <simon(at)2ndquadrant(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "'Neil Conway'" <neilc(at)samurai(dot)com>, <josh(at)agliodbs(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PERFORM] WAL Optimisation - configuration and usage
Date: 2004-03-08 23:28:25
Message-ID: 004601c40565$0e848c60$f3bd87d9@LaptopDellXP
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-pitr pgsql-performance

>Tom Lane
> "Simon Riggs" <simon(at)2ndquadrant(dot)com> writes:
> > The behaviour I wish to add is:
> > Keep wal_debug as a value between 0 and 16.
> > If =0 then no debug output (default).
> > Use following bitmasks against the value
> > Mask 1 = XLOG Checkpoints get logged
> > Mask 2 = Archive API calls get logged
> > Mask 4 = Transaction - commits get logged
> > Mask 8 = Flush & INSERTs get logged
>
> I see no value in reverting Neil's change. The above looks way too
much
> like old-line assembler-programmer thinking to me, anyway. Why not
> invent a separate, appropriately named boolean variable for each thing
> you want to control? Even C programmers manage to avoid doing the
sort
> of mental arithmetic that the above would force onto DBAs.
>
> As for whether it should be #ifdef'd or not, I'd have no objection to
> turning WAL_DEBUG on by default in pg_config_manual.h for the duration
> of PITR development. One should not however confuse short-term
> debugging needs with features that the average user is going to need
> indefinitely. (It was not too long ago that there was still debugging
> code for btree index building in there, for crissakes.)

...erm, I guess you didn't like that one then? ;}

> As for whether it should be #ifdef'd or not, I'd have no objection to
> turning WAL_DEBUG on by default in pg_config_manual.h for the duration
> of PITR development.

Yes OK, thank you.

> Why not
> invent a separate, appropriately named boolean variable for each thing
> you want to control?

Yes, OK, will do.

Best Regards, Simon Riggs

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-03-08 23:50:53 Re: Out of space situation and WAL log pre-allocation (was
Previous Message Bruce Momjian 2004-03-08 23:25:14 Catching up

Browse pgsql-hackers-pitr by date

  From Date Subject
Next Message Simon Riggs 2004-03-09 20:26:55 Re: [HACKERS] WAL Optimisation - configuration and usage
Previous Message Neil Conway 2004-03-03 23:50:04 Re: [PERFORM] WAL Optimisation - configuration and usage

Browse pgsql-performance by date

  From Date Subject
Next Message Shridhar Daithankar 2004-03-09 07:02:43 [OT] Respository [was Re: [PERFORM] Feature request: smarter use of conditional indexes]
Previous Message Chris Smith 2004-03-08 21:43:40 Re: simple query join