two postgres binaries - Mailing list pgsql-novice

From kenneth d'souza
Subject two postgres binaries
Date
Msg-id BAY116-W38A9793A99576D914CD351ED490@phx.gbl
Whole thread Raw
Responses Re: two postgres binaries  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Hi,
 
I am attaching a PID of the a psql to the gdb debugger. However, I am unable to see the code location by the "where" command in gdb. I am of the feeling that postgres that is running doesn't have the debugging symbols.
 
This postgres is getting started by /usr/local/pgsql/pg_ctl which calls /usr/local/pgsql/posmaster.
However, When I configure and compile with --enable-debug and -g respectively it generates a postgres binary in the location /usr/local/postgres8.1.5/src/backend/ .
 
 I can't use the /usr/local/postgres8.1.5/src/bin/pg_ctl/pg_ctl to start /usr/local/postgres8.1.5/src/backend/postgres as it states that postgres must exists in the same location as that of pg_ctl.
 
Now, If I use gdb to this /usr/local/postgres8.1.5/src/backend/postgres it runs in single user mode and hence I can't connect via a psql session. Moreover it as a prompt of backend> . I can't even attach a PID now.

Hence my question
1. Which is exact method in debugging the postgres which has the debugging symbols and can be connected via psql?
2. what is the difference in the binary at 2 different locations.
/usr/local/postgres8.1.5/src/backend/
/usr/local/pgsql/
 
Thanks,
Kenneth


It's about getting married. Click here! Try it!

pgsql-novice by date:

Previous
From: "Michael Smith"
Date:
Subject: Creating a tablespace on an external server in Windows
Next
From: "Obe, Regina"
Date:
Subject: Re: Creating a tablespace on an external server in Windows