|
Вызов current_timestamp в процедуре
|
|||
---|---|---|---|
#18+
Добрый день Сегодня понадобилось узнать сколько длится выполнение процедуры, сделал вставки в код вызовы udf с записью в txt, но current_timestamp в начале процедуры и в конце выдает одно и тоже время. Почему? ... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2017, 13:26 |
|
Вызов current_timestamp в процедуре
|
|||
---|---|---|---|
#18+
... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2017, 13:32 |
|
Вызов current_timestamp в процедуре
|
|||
---|---|---|---|
#18+
hvladGallemar, RTFM: current_timestamp Епт... Within a PSQL module (procedure, trigger or executable block), the value of CURRENT_TIMESTAMP will remain constant every time it is read. If multiple modules call or trigger each other, the value will remain constant throughout the duration of the outermost module. If you need a progressing value in PSQL (e.g. to measure time intervals), use 'NOW'. Спасибо ... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2017, 13:35 |
|
Вызов current_timestamp в процедуре
|
|||
---|---|---|---|
#18+
Gallemar, Код: sql 1.
... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2017, 14:03 |
|
|
start [/forum/topic.php?fid=40&msg=39444728&tid=1561620]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
168ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
others: | 316ms |
total: | 563ms |
0 / 0 |