Pass timestamp back from c-function - Mailing list pgsql-general

From Marc Wrubleski
Subject Pass timestamp back from c-function
Date
Msg-id 3ADF2E8A.3909C986@sorexsoftware.com
Whole thread Raw
List 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 by date:

Previous
From: Matthew Hixson
Date:
Subject: Re: syntax error 44 : ->
Next
From: "Vilson farias"
Date:
Subject: very slow execution of stored procedures