Re: DTrace probes patch - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: DTrace probes patch
Date
Msg-id 3f0b79eb0812161815y34842fafs282d781aae35e720@mail.gmail.com
Whole thread Raw
In response to Re: DTrace probes patch  (Robert Lor <Robert.Lor@Sun.COM>)
Responses Re: DTrace probes patch
List pgsql-hackers
Hi,

On Wed, Dec 17, 2008 at 4:53 AM, Robert Lor <Robert.Lor@sun.com> wrote:
> @@ -1313,12 +1318,14 @@ AdvanceXLInsertBuffer(bool new_segment)
>                                 * Have to write buffers while holding insert
> lock. This is
>                                 * not good, so only write as much as we
> absolutely must.
>                                 */
> +                               TRACE_POSTGRESQL_WAL_BUFFER_WRITE_START();
>                                WriteRqst.Write = OldPageRqstPtr;
>                                WriteRqst.Flush.xlogid = 0;
>                                WriteRqst.Flush.xrecoff = 0;
>                                XLogWrite(WriteRqst, false, false);
>                                LWLockRelease(WALWriteLock);
>                                Insert->LogwrtResult = LogwrtResult;
> +                               TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DONE();

Why is TRACE_POSTGRESQL_WAL_BUFFER_WRITE_START/DONE called
only in AdvanceXLInsertBuffer? We can trace only a part of WAL buffer write?

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: Another issue in default-values patch: defaults expanded too soon
Next
From: Tom Lane
Date:
Subject: Re: Another issue in default-values patch: defaults expanded too soon