On Fri, Aug 19, 2005 at 01:56:39PM -0000, Greg Sabino Mullane wrote: > > Tom Lane once mentioned that "Valgrind is fairly useless for debugging > > postgres," but has anybody tried it for this problem? > > I've got valgrind working, but not sure exactly how to use it to debug > this problem. What's the procedure?
I haven't used valgrind much, but I was thinking of initdb'ing a test cluster, loading the PL/Perl functions into it, and running valgrind on a single-user-mode postgres process in which you issue a query that causes the problem. I'm wondering if valgrind's memory checks will show the code accessing memory that hasn't been initialized. -- Michael Fuhr ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings