| От | Tom Lane |
|---|---|
| Тема | Re: gettime() - a timeofday() alternative |
| Дата | |
| Msg-id | 26263.1123971841@sss.pgh.pa.us обсуждение |
| Ответ на | Re: gettime() - a timeofday() alternative (Brendan Jurd <direvus@gmail.com>) |
| Ответы |
Re: gettime() - a timeofday() alternative
|
| Список | pgsql-hackers |
Brendan Jurd <direvus@gmail.com> writes:
> Regarding the statement_timestamp() ... if the entire query path is
> parser -> rewriter -> planner/optimiser -> executor, what point in
> that path would be considered the true start of the "statement"?
IIRC, what we actually intended that to mean is the time of receipt of
the current interactive command --- that is, it gets set in the
postgres.c outer loop, not anywhere in the parser/etc path. Otherwise
there's not a unique answer (consider statements issued inside SQL
functions for instance).
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера