Pass timestamp back from c-function

Поиск
Список
Период
Сортировка
От Marc Wrubleski
Тема Pass timestamp back from c-function
Дата
Msg-id 3ADF2E8A.3909C986@sorexsoftware.com
обсуждение исходный текст
Список pgsql-general
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


В списке pgsql-general по дате отправления:

Предыдущее
От: Matthew Hixson
Дата:
Сообщение: Re: syntax error 44 : ->
Следующее
От: "Vilson farias"
Дата:
Сообщение: very slow execution of stored procedures