"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
: 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:
>
-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
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/
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
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();
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
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
"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
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
"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?
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.
--
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.
---
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
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
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
16 matches
Mail list logo