Re: postgres uptime

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: postgres uptime
Дата
Msg-id 412689CD.8010200@bigfoot.com
обсуждение исходный текст
Ответ на Re: postgres uptime  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: postgres uptime  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> Andreas Pflug wrote:

>>Guess what I just implemented...
>>
>>pg_postmaster_starttime() RETURNS timestamp, currently implemented in 
>>the admin module for win32  using GetProcessTimes(PostmasterHandle).
>>
>>What's the equivalent for posix? Interpreting popen("ps...") might get 
>>messy.
> 
> 
> I think we should just call gettimeofday() at postmaster start and store
> it somewhere.

Isn't the shared memory a good place ?

Regards
Gaetano Mendola




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

Предыдущее
От: Darcy Buskermolen
Дата:
Сообщение: Re: 8.0 Open Items
Следующее
От: Gaetano Mendola
Дата:
Сообщение: devx article