Re: [GENERAL] CURRENT_TIMESTAMP

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [GENERAL] CURRENT_TIMESTAMP
Дата
Msg-id 200209240201.g8O216G22740@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] CURRENT_TIMESTAMP  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: [GENERAL] CURRENT_TIMESTAMP
Список pgsql-sql
Josh Berkus wrote:
> 
> Tom, Bruce,
> 
> > > A possible compromise is to dissociate now() and current_timestamp,
> > > allowing the former to be start of transaction and the latter to be
> > > start of client command.
> > 
> > I was thinking 'transaction_timestamp' for the transaction start time, and
> > current_timestamp for the statement start time.  I would equate now()
> > with current_timestamp.
> 
> May I point out that this will break compatibility for those used to the 
> current behavior?

I am not saying we have to make that change.  My point is that our
current behavior may not be the most intuitive, and that most people may
prefer a change.  Any such change would be documented in the release
notes.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: [GENERAL] CURRENT_TIMESTAMP
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Performance w/ multiple WHERE clauses