Re: bgwriter stats - Mailing list pgsql-patches

From Tom Lane
Subject Re: bgwriter stats
Date
Msg-id 18235.1174343968@sss.pgh.pa.us
Whole thread Raw
In response to Re: bgwriter stats  (Magnus Hagander <magnus@hagander.net>)
List pgsql-patches
Magnus Hagander <magnus@hagander.net> writes:
> Neil Conway wrote:
>> I don't think that's the right attitude to take, at all. Why not just
>> use a lock? It's not like the overhead will be noticeable.

> Probably, but none of the other code appears to take a lock out on it :)

Huh?  It doesn't use a lock for touching the checkpoint counters, but
that's OK because they're sig_atomic_t.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: bgwriter stats
Next
From: Tom Lane
Date:
Subject: Re: Win32 shmem