strange core dump ... - Mailing list pgsql-general

From Hans-Juergen Schoenig
Subject strange core dump ...
Date
Msg-id 3BA3118A.276FD38E@cybertec.at
Whole thread Raw
List 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


pgsql-general by date:

Previous
From: Lincoln Yeoh
Date:
Subject: Re: MySQL development MUST immdediately cease - Due to
Next
From: Rums
Date:
Subject: CD-RW Scheduled Database Backup...