Re: [HACKERS] debugger question

2010-04-13 Thread Tom Lane
"Murali M. Krishna" writes: > I would like to start using gdb. > ... > , but this is what I get. > gdb) attach 1731 > Attaching to program: /usr/local/pgsql/bin/postgres, process 1731 > ptrace: Operation not permitted. Try running gdb as the postgres user, ie, su to postgres first. If that doesn

Re: [HACKERS] debugger question

2010-04-12 Thread Murali M. Krishna
: to...@tuxteam.de Subject: Re: [HACKERS] debugger question To: "Murali M. Krishna" Cc: pgsql-hackers@postgresql.org Date: Monday, April 12, 2010, 9:28 PM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Apr 12, 2010 at 08:31:38PM -0700, Murali M. Krishna wrote: > Hello: >

Re: [HACKERS] debugger question

2010-04-12 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Apr 12, 2010 at 08:31:38PM -0700, Murali M. Krishna wrote: > Hello: > > I am brand new to Postgresql. > > I ran the following commands. > ./configure > gmake > su > gmake install > adduser postgres > mkdir /usr/local/pgsql/data > chown postgr

[HACKERS] debugger question

2010-04-12 Thread Murali M. Krishna
Hello: I am brand new to Postgresql. I ran the following commands. ./configure gmake su gmake install adduser postgres mkdir /usr/local/pgsql/data chown postgres /usr/local/pgsql/data su - postgres /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data /usr/local/pgsql/bin/postmaster -D /usr/local/

Re: [HACKERS] Debugger

2007-10-20 Thread Heikki Linnakangas
Pedro Belmino wrote: > 4. Tried to attach the id of the process to the debugger and gave the error: > "Unable to open socket file: target process not responding or HotSpot VM not > loaded" You're trying to use a Java debugger to attach to a non-Java program (Postgres). That's not going to work. Us

Re: [HACKERS] Debugger

2007-10-19 Thread Pedro Belmino
Excuse me, My previous email, I had a problem formatting of my text. So it is not understandable. Correcting: Pinged the following steps in the console: 1. Pinged the command postgres to start. 2. Joined in psql. 3. Typed the following command to get the id of the process: "SELECT pg_backend_pid();

Re: [HACKERS] Debugger

2007-10-19 Thread Pedro Belmino
I am using linux. 1. Inicializei the postgres the console by running. / Postgres. 2. Joined in psql through console and simulated. / Psql 3. Pg_backend_pid swirled SELECT () to get the id of the process; 4. In ide tried to use that process to attach the debugger but gives the following error messag

Re: [HACKERS] debugger

2007-10-19 Thread Martijn van Oosterhout
On Fri, Oct 19, 2007 at 08:23:43AM -0300, Pedro Belmino wrote: > Hellow, > I continue to have problems using the debugger, can not achieve any > breakpoint that is outside the postmaster.c? Can anyone give me any hint? > Where do I mark a breakpoint so that I can follow the creation of an index > t

Re: [HACKERS] Debugger

2007-10-19 Thread Gregory Stark
"Pedro Belmino" <[EMAIL PROTECTED]> writes: > Hellow, > I continue to have problems using the debugger, can not achieve any > breakpoint that is outside the postmaster.c? Can anyone give me any hint? > Where do I mark a breakpoint so that I can follow the creation of an index > to file index.c fo

Re: [HACKERS] Debugger

2007-10-19 Thread Alexey Klyukin
PostgreSQL consists of multiple processes, launched by postmaster, make sure you are debugging the right one. After connecting to a database with your favorite client (i.e. psql) you can use ps (if you have a unix-like system) or a task manager to determine a pid of postgres process and then attach

Re: [HACKERS] Debugger

2007-10-19 Thread Tom Lane
"Pedro Belmino" <[EMAIL PROTECTED]> writes: > I continue to have problems using the debugger, can not achieve any > breakpoint that is outside the postmaster.c? Can anyone give me any hint? > Where do I mark a breakpoint so that I can follow the creation of an index > to file index.c for example?

[HACKERS] Debugger

2007-10-19 Thread Pedro Belmino
Hellow, I continue to have problems using the debugger, can not achieve any breakpoint that is outside the postmaster.c? Can anyone give me any hint? Where do I mark a breakpoint so that I can follow the creation of an index to file index.c for example? Thank, -- Pedro Belmino. --

[HACKERS] debugger

2007-10-19 Thread Pedro Belmino
Hellow, I continue to have problems using the debugger, can not achieve any breakpoint that is outside the postmaster.c? Can anyone give me any hint? Where do I mark a breakpoint so that I can follow the creation of an index to file index.c for example? Thank, -- Pedro Belmino. ---

Re: [HACKERS] Debugger

2007-09-20 Thread Hannes Eder
Peter Eisentraut schrieb: Pedro Belmino wrote: I am with a problem. When I am using debugger, breakpoints that they are inside of main function (stop the execution in the marked point) but when breakpoint is marked in another archive (index.c for example) breakpoint does not function (the exe

Re: [HACKERS] Debugger

2007-09-19 Thread Peter Eisentraut
Pedro Belmino wrote: > I am with a problem. When I am using debugger, breakpoints that they > are inside of main function (stop the execution in the marked point) > but when breakpoint is marked in another archive (index.c for > example) breakpoint does not function (the execution in the point > do

[HACKERS] Debugger

2007-09-19 Thread Pedro Belmino
Hello, I am with a problem. When I am using debugger, breakpoints that they are inside of main function (stop the execution in the marked point) but when breakpoint is marked in another archive (index.c for example) breakpoint does not function (the execution in the point does not stop), because th