| От | Decibel! |
|---|---|
| Тема | Re: postmaster restart on a different dataDir |
| Дата | |
| Msg-id | 20070814220151.GU54135@nasby.net обсуждение |
| Ответ на | postmaster restart on a different dataDir ("Medi Montaseri" <montaseri@gmail.com>) |
| Ответы |
Re: postmaster restart on a different dataDir
|
| Список | pgsql-admin |
On Mon, Aug 13, 2007 at 04:05:37PM -0700, Medi Montaseri wrote: > Hi, > > I am trying to measure startup time of postmaster. Say I have postmaster Why? > running on -D /tmp/d1 and would like to restart it on -D /tmp/d2. > > If I just say > time pg_ctl restart -D /tmp/d2 > it will not produce an accurate result because pg_ctl will start postmaster > in the background and return immediately but if you query the engine right > away, you'll see that it is not ready yet as in > time ( pg_ctl restart -D /tmp/d2 ; psql -l ) > > If I call postmaster, then the command is blocking waiting for postmaster to > exit. So let it stop, start the timer, then start it again. -- Decibel!, aka Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера