Обсуждение: Pass timestamp back from c-function

Поиск
Список
Период
Сортировка

Pass timestamp back from c-function

От
Marc Wrubleski
Дата:
Hello fellow Postgres Users,

I have a C-function that determines a time and passes that time back via
a text type. I would like to convert the function to pass back a
timestamp type, but am a little unclear on what exactly a timestamp type
is.

Can any one offer my any pointers?

create function fn_GetMyTimestamp(text, int) returns timestamp as
'/path/to/so' language 'C';

in .so

timestamp fn_GetMyTimestamp(text, int)

Thanks.

Marc Wrubleski
Sorex Software Inc.
403 371-7598