timestamp_in DirectFunctionCall

From: Marios Vodas <mvodas(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: timestamp_in DirectFunctionCall
Date: 2010-10-01 18:02:02
Message-ID: AANLkTinSoizOYwfmqkr9paAD6Jwu=Ngknrwg2oZnV50D@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Would this be correct?
DatumGetTimestamp(DirectFunctionCall3(timestamp_in, CStringGetDatum(time),
PointerGetDatum(0), Int32GetDatum(MAX_TIMESTAMP_PRECISION)));

This is how timestamp_in starts, *#ifdef NOT_USED* is a litle bit confusing.
Datum timestamp_in(PG_FUNCTION_ARGS)
{
char *str = PG_GETARG_CSTRING(0);

#ifdef NOT_USED
Oid typelem = PG_GETARG_OID(1);
#endif
int32 typmod = PG_GETARG_INT32(2);

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-10-01 18:04:25 Re: So git pull is shorthand for what exactly?
Previous Message Pavel Stehule 2010-10-01 17:37:03 Re: wip: functions median and percentile