Re: Creating server-side functions: one simple error - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Creating server-side functions: one simple error
Date
Msg-id 27690.1034259565@sss.pgh.pa.us
Whole thread Raw
In response to Re: Creating server-side functions: one simple error  (Ruslan A Dautkhanov <rusland@scn.ru>)
List pgsql-bugs
Ruslan A Dautkhanov <rusland@scn.ru> writes:
> SPI, and I have trap again - I can't translate datetime column, which
> pass to my procedure. I must convert it to UNIX 1970-seconds counter for
> my internal needs, but I havn't found _any_ PG_GETARG_* function in fmgr.h,
> which can read time types as procedure's arguments.

Not all the GETARG functions are in fmgr.h, only the most widely used
types.  See utils/timestamp.h.

            regards, tom lane

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #795: null resulting from left join corrupts select
Next
From: Joe Conway
Date:
Subject: Re: user name lost from dictionary