Re: [HACKERS] SPI hacking - Mailing list pgsql-hackers

From jwieck@debis.com (Jan Wieck)
Subject Re: [HACKERS] SPI hacking
Date
Msg-id m0zbsh3-000EBYC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
In response to SPI hacking  (Terry Mackintosh <terry@terrym.com>)
Responses New SPI contrib stuff, was Re: [HACKERS] SPI hacking  (Terry Mackintosh <terry@terrym.com>)
List pgsql-hackers
>
> Hi all
>
> I started with the contrib/spi/*.c stuff and am working toward a function
> to be used by a trigger to update a datetime field upon doing an UPDATE to
> a record.
>
> It is about ready to test, except one thing :)
>
> Is there a function like GetCurrentAbsoluteTime() that will get the
> current time in a form suitable for inserting into a datetime field?
>
> GetCurrentDatetimeTime() maybe???
> or a convertion function?

    What about datetime_in("now") ?


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#======================================== jwieck@debis.com (Jan Wieck) #

pgsql-hackers by date:

Previous
From: Terry Mackintosh
Date:
Subject: SPI hacking
Next
From: Terry Mackintosh
Date:
Subject: New SPI contrib stuff, was Re: [HACKERS] SPI hacking