Re: [HACKERS] Is there any way to disable compiler optimization and enable debug?

2012-04-08 Thread Peter Eisentraut
On sön, 2012-04-08 at 14:47 -0400, Andrew Dunstan wrote: > Try: > > CFLAGS=-O0 ./configure --enable-debug Better yet: ./configure CFLAGS=-O0 --enable-debug -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.pos

Re: [HACKERS] Is there any way to disable compiler optimization and enable debug?

2012-04-08 Thread Andrew Dunstan
On 04/08/2012 01:42 PM, clover white wrote: HI, I would like to debug PG because I have a problem when I run initdb, and I have question about the configure file. when I used the command below to config PG, it was only built with debugging symbols (-g) and O2 compiler optimization which w

[HACKERS] Is there any way to disable compiler optimization and enable debug?

2012-04-08 Thread clover white
HI, I would like to debug PG because I have a problem when I run initdb, and I have question about the configure file. when I used the command below to config PG, it was only built with debugging symbols (-g) and O2 compiler optimization which would lead to execute order not match the source cod