Re: bgwriter stats

From: Neil Conway <neilc(at)samurai(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PGSQL-Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: bgwriter stats
Date: 2007-03-19 19:57:54
Message-ID: 45FEEB42.8060708@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Magnus Hagander wrote:
> Anyway. Attached patch adds this to the bgwriter shared memory. Is it
> safe to do this, and then just have a regular function running in a
> normal backend pulling out the value and returning it to the user,
> without locking?
If the variable is an int64, I don't believe so: the architecture might
not implement atomic read/writes of int64 values.

-Neil

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2007-03-19 20:02:05 Re: bgwriter stats
Previous Message Magnus Hagander 2007-03-19 19:44:44 bgwriter stats