Re: calling elog possibly causing problem in DirectFunctionCall1 - Mailing list pgsql-sql

From Tom Lane
Subject Re: calling elog possibly causing problem in DirectFunctionCall1
Date
Msg-id 628.1164995263@sss.pgh.pa.us
Whole thread Raw
In response to calling elog possibly causing problem in DirectFunctionCall1  ("Rajesh Kumar Mallah" <mallah.rajesh@gmail.com>)
Responses Re: calling elog possibly causing problem in DirectFunctionCall1  ("Rajesh Kumar Mallah" <mallah.rajesh@gmail.com>)
Re: calling elog possibly causing problem in DirectFunctionCall1  ("Rajesh Kumar Mallah" <mallah.rajesh@gmail.com>)
List pgsql-sql
"Rajesh Kumar Mallah" <mallah.rajesh@gmail.com> writes:
>   data->time_stamp =
>     DirectFunctionCall1(timestamptz_in, CStringGetDatum("now"));

This code is incorrect, as timestamptz_in takes three arguments.
        regards, tom lane


pgsql-sql by date:

Previous
From: Shane Ambler
Date:
Subject: Re: Autovaccum
Next
From: "Rajesh Kumar Mallah"
Date:
Subject: Re: calling elog possibly causing problem in DirectFunctionCall1