Amit Khare writes:
> Can any one help me running postgres inside gdb for debugging ?
The short answer is you need to tell gdb to connect to the backend
'postmaster' process which has been started for your connection - you
should able to work out its pid using ps (or more likely a simple list
in your debugger frontend).
The problem is you'll need to do this very fast - this is why postgres
has a '-W' option to tell the process to wait a defined time before
really starting up - giving you time to connect. See:
http://www.geocrawler.com/archives/3/10/1999/4/0/1649841/
Lee.