I am running some C++ code in postgresql. I am trying to print some output to keep track of the execution, but no result. Is there anything I need to add somewhere to enable printf command to work? I am adding the below mentioned files in my code:
#include "postgres.h"
#include <math.h>
#include <limits.h>
#include <inttypes.h>
What I am trying to print:
printf("abc");
Any help would be greatly appreciated, as I have been trying to get some output for the past 2 days. Thanks!
Edit : I am running the postgresql server using SSH. Let me know via comments if any more information is needed.
printf("abc\n");/var/log/postgresql.logor a similar log file for the stringabc... if you are running from a stored procedure, that's where the server log is going (probably)...