Add isExtend to the parameters of the buffer_read_start and buffer_read_done
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Mar 2009 22:39:05 +0000 (22:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Mar 2009 22:39:05 +0000 (22:39 +0000)
commit44023dc5f58168bebd28a6d804bd3fc1dfaa3d11
treef695b99c13fa6348ad77cbb6e4994df1ab6176f8
parentf04ee7043bc5a187932c2fc647abe41d3ac1d0ba
Add isExtend to the parameters of the buffer_read_start and buffer_read_done
DTrace probes, so that ordinary reads can be distinguished from relation
extension operations.  Move buffer_read_start probe to before the
smgrnblocks() call that's needed in the isExtend case, since really that step
should be charged as part of the time needed for the extension operation.
(This makes it slightly harder to match the read_start with the associated
read_done, since now you can't match them on blockNumber, but it should still
be possible since isExtend operations on the same relation can never be
interleaved.)  Per recent discussion.

In passing, add the page identity (forkNum/blockNum) to the parameters of the
buffer_flush_start/buffer_flush_done probes, which were unaccountably lacking
the info.
src/backend/storage/buffer/bufmgr.c
src/backend/utils/probes.d