[postgis-devel] --enable-debug ?

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Sep 10 11:19:32 PDT 2017


On 06/09/17 21:41, Paul Ramsey wrote:

> Anybody regularly compiling with ./configure --enable-debug?
> 
> I ask because I see it doesn't do much except crank POSTGIS_DEBUG_LEVEL
> up to a relatively intolerable value of 4. 
> 
> I don't personally use POSTGIS_DEBUG_LEVEL at all in my dev work
> anymore, I just attach gdb and go from there; when I did use it, I
> generally tweaked in on a file-by-file basis because otherwise the
> message flood was impossible to handle.
> 
> I'd like to reclaim --enable-debug and have it do what I would expect it
> to do, namely add the -g flag to the build, and turn on more expensive
> memory checks that are guarded behind PARANOIA_LEVEL.

Fine with me. There are now some really good tracing tools available to
help out these days, and I think the PostgreSQL guys went with systemtap
in the end.

The benefit of using the same tracing mechanism across PostgreSQL and
PostGIS is that you can enable tracepoints across both projects as
required at runtime without needed to recompile.


ATB,

Mark.



More information about the postgis-devel mailing list