Re: breakpoints in eclipse using postgresql

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Ravi Kiran <ravi(dot)kolanpaka(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: breakpoints in eclipse using postgresql
Date: 2014-07-06 14:34:34
Message-ID: 53B95E7A.4040402@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/06/2014 05:44 AM, Ravi Kiran wrote:
> hi,
>
> I am using helios Eclipse for debugging my code in postgresql.
>
> My aim is to know how postgresql uses join algorithms during the join
> query, so I started to debug*nodenestloop.c* which is in the Executor
> folder.
>
> I gave break points in that file, But whenever I try to debug that file,
> the control goes to main.c and never comes back,How do I constraint the
> control only to that particular file(nodenestloop.c)
>
> Below are the following fields which I gave in Debug configurations of
> Helios Eclipse.
>
> *C/C++ Application - src/backend/postgres* and *project - pgsql*
>
> I followed the steps given in the following link for running the program.
>
> https://wiki.postgresql.org/wiki/Working_with_Eclipse#
>
> I even uncheked the field "*Start on Start up=main*" , but When I do
> that, The *step in and Step over*buttons are not activated and the
> following problem has popped up.
>
> /Could not save master table to file
> '/home/ravi/workspace/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources'.
> /home/ravi/workspace/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
> (Permission denied)/

So who are you running Eclipse as and do they have permissions on the
above directory?

>
> So I started eclipse using sudo, but this time the following error has
> come in the console of eclipse.
>
> /"root" execution of the PostgreSQL server is not permitted. The server
> must be started under an unprivileged user ID to prevent possible system
> security compromise. See the documentation for more information on how
> to properly start the server./

As the message states Postgres will not run as root.

>
> Could any one help me with this.
>
> Thank you
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-07-06 16:06:39 Re: pg_dump slower than pg_restore
Previous Message Ravi Kiran 2014-07-06 12:44:47 breakpoints in eclipse using postgresql