On Mon, Aug 7, 2017 at 2:46 PM, Ed Espino <[email protected]> wrote:
> While I was trying to track down the cause of MADLIB-1068, I managed to put
> Postgres/MADlib under the debugger (gdb) and thought the configuration
> would be of some help to someone. Essentially, I built postgres with the
> following configure options:
>
> configure --enable-cassert --enable-debug --with-python
>
> I then was able to start a psql session and attach to the running session
> with gdb. This allows one to set breakpoints, review variable values and
> all the other cool gdb debugging techniques. There is a reasonable amount
> of information one can find on using gdb and on the web. It was much easier
> than I originally envisioned. If anyone needs assistance with the setup,
> please don't hesitate to ping me.

This is a pretty awesome tidbit! Any chance you can contribute it to the wiki?
   https://cwiki.apache.org/confluence/display/MADLIB/

Perhaps even a brand new section on Debugging and Developing?

Thanks,
Roman.

Reply via email to