strange core dump ...

From: Hans-Juergen Schoenig <hs(at)cybertec(dot)at>
To: pgsql-general(at)postgresql(dot)org
Subject: strange core dump ...
Date: 2001-09-15 08:30:02
Message-ID: 3BA3118A.276FD38E@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have tried to implement a small logging function. The problem is that
it does not work on some systems (it works for me on RedHat).
Does anybody know what I have done wrong?

#include <stdio.h>
#include <pgsql/postgres.h>
#include <pgsql/fmgr.h>

PG_FUNCTION_INFO_V1(myelog);
Datum myelog(PG_FUNCTION_ARGS)
{
text *arg1 = PG_GETARG_TEXT_P(0);
elog(NOTICE, "%s", VARDATA(arg1));
PG_RETURN_INT16(1);
}

Hans

Browse pgsql-general by date

  From Date Subject
Next Message Philip 2001-09-15 10:57:58 Does Postgresql 7.1.x Still Have 8K Maximum Field Size?
Previous Message Gaurav Priyolkar 2001-09-15 08:15:27 Re: error while generating and EXECUTEing a query dynamically