| От | Tom Lane |
|---|---|
| Тема | Re: More vacuum stats |
| Дата | |
| Msg-id | 20822.1282574775@sss.pgh.pa.us обсуждение |
| Ответ на | Re: More vacuum stats (Magnus Hagander <magnus@hagander.net>) |
| Список | pgsql-hackers |
Magnus Hagander <magnus@hagander.net> writes:
> On Mon, Aug 23, 2010 at 16:38, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Magnus Hagander <magnus@hagander.net> writes:
>>> We could also store last_autovacuum_vacuum_duration - is that better
>>> or worse than start and end time?
>>
>> No, I think you want to know the actual time not only the duration.
> Well, you could calculate one from the other - especially if one takes
> less size, per your comment above.
With alignment considerations, adding a field is going to cost 8 bytes;
whether it's a timestamp or a duration isn't going to matter. I'd be
inclined to store the timestamp, it just seems more like the base datum.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера