Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> I thought about it. I think we can use GUC variable (e.g. dtraced_alloc)
> and hook switch pointers to dtraced AsetFunctions. The problem is how to
> distribute to all backend.
You set the GUC in postgresql.conf. No big deal.
If we go this route it would be nice to think about making a facility
that has some usefulness for non-DTrace platforms too.
regards, tom lane