| От | Richard Huxton |
|---|---|
| Тема | Re: Logging duration of batch runs |
| Дата | |
| Msg-id | 40D96C3E.7060007@archonet.com обсуждение исходный текст |
| Ответ на | Logging duration of batch runs (Christian Kratzer <ck-lists@cksoft.de>) |
| Список | pgsql-general |
Christian Kratzer wrote: > Hi, > > I have a stored procedure run periodically that assign accounting > records to their respective customers based on username and other criteria. > It also does all kinds of validation work on the accounting records. > > I would have liked to have the procedure log start and stop times using > RAISE NOTICE and also store start and stop time of each run > to a logging table. [snip] > Is there any way I can get plpgsql to reevaluate now at the end > of the batch ??? You want timeofday() rather than now(). Note that it returns text rather than a timestamp. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера