Skip site navigation (1) Skip section navigation (2)

Re: Help needed in testing my code.

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Srikanth M" <srikanth_m(at)students(dot)iiit(dot)net>,<pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Help needed in testing my code.
Date: 2003-05-28 07:56:05
Message-ID: 09bf01c324ee$9957a460$6500a8c0@fhp.internal (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

This is a much better way than printf:

elog(NOTICE, "this is my test: %s", string);


----- Original Message ----- 
From: "Srikanth M" <srikanth_m(at)students(dot)iiit(dot)net>
To: <pgsql-hackers(at)postgresql(dot)org>
Sent: Wednesday, May 28, 2003 3:08 PM
Subject: [HACKERS] Help needed in testing my code.

> Dear Sir, 
> I want to know the compilaiton and execution of my 
> code. Suppose if i add a test printf statement in the 
> src/backend/tcop/postgres.c and after compilation and 
> execution i should get that statement every time i give 
> a query to psql.
> After running make I even added the executables 
> in the /usr/bin/ directory but i couldn't see the test 
> statement after giving a query to psql.
> please tell me the procedure of adding a test 
> printf statement in postgres.c(or in any file), and 
> compiling and running it so that i get the test statement 
> as an output when i give the query.
> Sincerely
> Srikanth M
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?

In response to


pgsql-hackers by date

Next:From: Kris JurkaDate: 2003-05-28 10:08:36
Subject: Re: Help needed in testing my code.
Previous:From: Ang Chin HanDate: 2003-05-28 07:51:07
Subject: Re: Postgresql on SUN Server

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group