Skip site navigation (1) Skip section navigation (2)

Re: Review: DTrace probes (merged version) ver_03

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Lor <Robert(dot)Lor(at)Sun(dot)COM>
Cc: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, jesus(at)omniti(dot)com
Subject: Re: Review: DTrace probes (merged version) ver_03
Date: 2008-07-29 00:06:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Robert Lor <Robert(dot)Lor(at)Sun(dot)COM> writes:
> Tom Lane wrote:
>> * The probes that pass buffer tag elements are already broken by the
>> pending "relation forks" patch: there is soon going to be another field
>> in buffer tags.

> I'm not familiar with this pending patch, but why would it break when 
> another field is added?

By "break" I meant "fail to function usefully".  Yes, it would still
compile, but if you don't have the fork number available then you won't
be able to tell what's really happening in the buffer pool.  You might
as well not pass any of the buffer tag as pass only part of it.

>> Furthermore the comment is
>> wrong, at least according to my tests with XCode 3.1.  Typedefs seem to
>> work fine.

> The issue is with Apple's dtrace implementation, not Xcode. For more 
> info, please see the link below.

I think what this is complaining about is whether allegedly built-in
typedefs like uintptr_t work.  What we care about is different: can
we write an explicit typedef in the .d file?  I do not know if that
worked in XCode 3.0 or not, but it seems to work fine in the version
of dtrace shipped in 3.1.  (And I'm perfectly fine with telling people
that they can't compile Postgres dtrace support with less than the most
recent tool set, especially since it'll be fairly old by the time 8.4

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Andrew GierthDate: 2008-07-29 00:13:16
Subject: Re: WITH RECUSIVE patches 0723
Previous:From: Robert LorDate: 2008-07-28 23:54:14
Subject: Re: Review: DTrace probes (merged version) ver_03

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group