Compile and test in netbeans

Started by Rohit Goyalabout 12 years ago3 messages
#1Rohit Goyal
rhtgyl.87@gmail.com

Hi All,

I want to modify postgresql code for the first time.
I tried to use netbeans to compile the code.

Now, I wanted to print something on console when I create a table or an
index. I am printing just for testing purpose to get a feel of code.

Please tel me the procedure to run and print using printf().

--
Regards,
Rohit Goyal

#2Ashutosh Bapat
ashutosh.bapat@enterprisedb.com
In reply to: Rohit Goyal (#1)
Re: Compile and test in netbeans

Please look at elog() with right error code like DEBUG or NOTICE.

On Sun, Nov 17, 2013 at 11:36 PM, Rohit Goyal <rhtgyl.87@gmail.com> wrote:

Hi All,

I want to modify postgresql code for the first time.
I tried to use netbeans to compile the code.

Now, I wanted to print something on console when I create a table or an
index. I am printing just for testing purpose to get a feel of code.

Please tel me the procedure to run and print using printf().

--
Regards,
Rohit Goyal

--
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

#3Craig Ringer
craig@2ndquadrant.com
In reply to: Rohit Goyal (#1)
Re: Compile and test in netbeans

On 11/18/2013 02:06 AM, Rohit Goyal wrote:

Hi All,

I want to modify postgresql code for the first time.
I tried to use netbeans to compile the code.

If you are doing something for the first time, do it exactly how the
documentation advises.

Once you've got it working that way, *THEN* you can try to vary what
you're doing.

http://www.postgresql.org/docs/current/static/install-procedure.html

Please tel me the procedure to run and print using printf().

http://google.com/search?q=printf

"man printf"

However, that's not how PostgreSQL does it. Look at the "elog" and
"ereport" functions. As usual, it's in the documentation:

http://www.postgresql.org/docs/current/static/error-message-reporting.html

You'll find this useful too:

http://doxygen.postgresql.org/

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers