Re: [HACKERS] Broken stuff in new dtrace probes

2009-03-24 Thread Robert Lor
Tom Lane wrote: Greg Stark writes: i like the idea of just have a separate pair of probes for table extension. I bet there are people who would actually like to see that alone sometimes too. After further thought I concluded that the best solution for this is to add the isExtend flag

Re: [HACKERS] Broken stuff in new dtrace probes

2009-03-24 Thread Robert Lor
Just returned from vacation ... Tom Lane wrote: I notice that we have in md.c TRACE_POSTGRESQL_SMGR_MD_READ_DONE(forknum, blocknum, reln->smgr_rnode.spcNode, reln->smgr_rnode.dbNode, reln->smgr_rnode.relNode, relpath(reln->smgr_rnode, forknum), nbytes, BLCKSZ); TRACE_POSTGRES

Re: [HACKERS] Broken stuff in new dtrace probes

2009-03-22 Thread Tom Lane
Greg Stark writes: > On Wed, Mar 11, 2009 at 11:50 PM, Tom Lane wrote: >> Furthermore, an isExtend call doesn't actually do a read(), so lumping >> them together with regular reads doesn't seem like quite the right thing >> for performance measurement purposes anyway.  Maybe we actually ought to

Re: [HACKERS] Broken stuff in new dtrace probes

2009-03-11 Thread Greg Stark
On Wed, Mar 11, 2009 at 11:50 PM, Tom Lane wrote: > Furthermore, an isExtend call doesn't actually do a read(), so lumping > them together with regular reads doesn't seem like quite the right thing > for performance measurement purposes anyway.  Maybe we actually ought to > have different probes

Re: [HACKERS] Broken stuff in new dtrace probes

2009-03-11 Thread Tom Lane
I wrote: > Seems that we need to have been quality-checking the dtrace patches > a bit more carefully. I went over all the existing dtrace probe calls and fixed what seemed clearly bogus, but there was one issue that seems like a bit of a judgement call. In ReadBuffer_common() we have isExte

[HACKERS] Broken stuff in new dtrace probes

2009-03-11 Thread Tom Lane
I notice that we have in md.c TRACE_POSTGRESQL_SMGR_MD_READ_DONE(forknum, blocknum, reln->smgr_rnode.spcNode, reln->smgr_rnode.dbNode, reln->smgr_rnode.relNode, relpath(reln->smgr_rnode, forknum), nbytes, BLCKSZ); TRACE_POSTGRESQL_SMGR_MD_WRITE_DONE(forknum, blocknum, reln->smg