Re: Creating server-side functions: one simple error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ruslan A Dautkhanov <rusland(at)scn(dot)ru>
Cc: Joe Conway <mail(at)joeconway(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Creating server-side functions: one simple error
Date: 2002-10-10 14:19:25
Message-ID: 27690.1034259565@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Ruslan A Dautkhanov <rusland(at)scn(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2002-10-10 14:30:33 Re: Bug #795: null resulting from left join corrupts select
Previous Message Joe Conway 2002-10-10 14:18:16 Re: user name lost from dictionary