[HACKERS] Help needed in testing my code.

2003-05-28 Thread Srikanth M
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?

http://www.postgresql.org/docs/faqs/FAQ.html


Re: [HACKERS] RBLs ... I'm tired of spam ...

2003-05-28 Thread Oleg Bartunov
I'm using bogofilter. It works well after learning what is spam/non spam.
I save all spam into seprarate box and  check it once a week.
It takes  mostly pressing d  in pine and could be done very quickly.

Oleg
On Tue, 27 May 2003, Marc G. Fournier wrote:


 *Way* off topic ... but I'm tired of processing through 300 messages
 nightly of which 10 are stuff that need to be approved for the lists, and
 290 are trash ...

 What are ppl using / trusting out there as far as Free RBLs are concerned?

 ---(end of broadcast)---
 TIP 3: if posting/reading through Usenet, please send an appropriate
 subscribe-nomail command to [EMAIL PROTECTED] so that your
 message can get through to the mailing list cleanly


Regards,
Oleg
_
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: [EMAIL PROTECTED], http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]


Re: [HACKERS] Help needed in testing my code.

2003-05-28 Thread Sailesh Krishnamurthy

Why don't you use elog(LOG, instead of printf ?

-- 
Pip-pip
Sailesh
http://www.cs.berkeley.edu/~sailesh


---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly


Re: [HACKERS] Help needed in testing my code.

2003-05-28 Thread Kris Jurka

I'm guessing his problem is that he's expecting this to come out of psql
and not go to the backend's stdout.

Kris Jurka

On Wed, 28 May 2003, Christopher Kings-Lynne wrote:

 Hi,

 This is a much better way than printf:

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

 Chris

 - Original Message -
 From: Srikanth M [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 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?
 
  http://www.postgresql.org/docs/faqs/FAQ.html
 


 ---(end of broadcast)---
 TIP 3: if posting/reading through Usenet, please send an appropriate
 subscribe-nomail command to [EMAIL PROTECTED] so that your
 message can get through to the mailing list cleanly



---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly


Re: [HACKERS] Help needed in testing my code.

2003-05-28 Thread Srikanth M
Dear Sir
I am new to postgres and dont know the excat procedure of 
testing my code, okay i will use elog, but please tell me the procedure 
of testing that. 

for example,pls tell what should i do after i add code, what make files 
should i run and where should i place the new executables.

Thanks for ur reply.

Srikanth.


 runOn 28 May 2003, 
Sailesh Krishnamurthy wrote:

 
 Why don't you use elog(LOG, instead of printf ?
 
 

-- 
big fan of not reinventing the wheel - good programmers write code,
great programmers steal code ;-)



---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster


Re: [HACKERS] Help needed in testing my code.

2003-05-28 Thread Sailesh Krishnamurthy
 Srikanth == Srikanth M Srikanth writes:

Srikanth Dear Sir I am new to postgres and dont know the excat
Srikanth procedure of testing my code, okay i will use elog, but
Srikanth please tell me the procedure of testing that.

Srikanth 

As you're a big fan of stealing code, why don't you grep the source
for occurences of elog(LOG or elog(NOTICE. 

elog(NOTICE should send NOTICE messages to the psql client (I think !)
while elog(LOG while only send it to the logfile you might have
specified while starting the postmaster 

Srikanth for example,pls tell what should i do after i add code,
Srikanth what make files should i run and where should i place
Srikanth the new executables.

Well you sould start out by RTFM .. read how to build postgres. I run
make install in my postgres directory (right above src/).

-- 
Pip-pip
Sailesh
http://www.cs.berkeley.edu/~sailesh


---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster


Re: [HACKERS] Help needed in testing my code.

2003-05-28 Thread Christopher Kings-Lynne
Hi,

This is a much better way than printf:

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

Chris

- Original Message - 
From: Srikanth M [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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?
 
 http://www.postgresql.org/docs/faqs/FAQ.html
 


---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly