timestamp_in DirectFunctionCall - Mailing list pgsql-hackers

From Marios Vodas
Subject timestamp_in DirectFunctionCall
Date
Msg-id AANLkTinSoizOYwfmqkr9paAD6Jwu=Ngknrwg2oZnV50D@mail.gmail.com
Whole thread Raw
Responses Re: timestamp_in DirectFunctionCall
List pgsql-hackers
Would this be correct?<br />DatumGetTimestamp(DirectFunctionCall3(timestamp_in, CStringGetDatum(time),
PointerGetDatum(0),Int32GetDatum(MAX_TIMESTAMP_PRECISION)));<br /><br />This is how timestamp_in starts, <b>#ifdef
NOT_USED</b>is a litle bit confusing.<br /> Datum timestamp_in(PG_FUNCTION_ARGS)<br />{<br />    char       *str =
PG_GETARG_CSTRING(0);<br/><br />#ifdef NOT_USED<br />    Oid            typelem = PG_GETARG_OID(1);<br />#endif<br
/>   int32        typmod = PG_GETARG_INT32(2);<br /> 

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: wip: functions median and percentile
Next
From: Robert Haas
Date:
Subject: Re: Patch author name on commitfest page