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

From Rajesh Kumar Mallah
Subject Re: calling elog possibly causing problem in DirectFunctionCall1
Date
Msg-id a97c77030612010959i7f864f5cgb551e6ced61bab3a@mail.gmail.com
Whole thread Raw
In response to Re: calling elog possibly causing problem in DirectFunctionCall1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql


On 12/1/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"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.

Dear Sir,

thanks for the kind reply.

field time_stamp of data is declared as:
 Datum time_stamp;

it is supposed to be populated with current timestamp , (now())
can you please tell me what should be passed as the third argument?

Regds
Mallah.



                        regards, tom lane

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: calling elog possibly causing problem in DirectFunctionCall1
Next
From: "Rajesh Kumar Mallah"
Date:
Subject: Re: calling elog possibly causing problem in DirectFunctionCall1