Christopher Kings-Lynne writes: > 1. How do you compile contribs with full debugging symbols. I always get > heuristic-fencepost-blah probs with gdb even though I've configured postgres > with all the debugging stuff.
First, compile without optimization (-O0). Second, using LOAD to load the shared object before the function call may be of advantage. I would allow you to set breakpoints in the loaded object, for example. Just waiting for the code to crash and hoping to get a good backtrace isn't always a successful strategy. > 2. Should contribs exclusively use palloc/pfree? Yes (unless there are some wildly unusual memory allocation requirements). -- Peter Eisentraut [EMAIL PROTECTED] ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html