Re: gettime() - a timeofday() alternative

From: Brendan Jurd <direvus(at)gmail(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: gettime() - a timeofday() alternative
Date: 2005-08-13 06:30:03
Message-ID: 37ed240d0508122330105cbf1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> We already have a TODO for this:
>
> * Add transaction_timestamp(), statement_timestamp(), clock_timestamp()
> functionality

I like the idea of having a function for statement start time. I
think I'll incorporate it into my patch.

The suggested naming convention in the TODO is good as well. I'd be
inclined to make those *_timestamp() functions the core functions,
and then make things like now() and gettime() shorthand equivalents.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Kreen 2005-08-13 09:25:45 Re: openbsd, plpython, missing threading symbols
Previous Message Michael Fuhr 2005-08-13 04:38:11 psql SET/RESET/SHOW tab completion

Browse pgsql-patches by date

  From Date Subject
Next Message Andreas Pflug 2005-08-13 08:05:12 Re: [HACKERS] For review: Server instrumentation patch
Previous Message Alvaro Herrera 2005-08-13 03:57:18 Re: createuser patch