Re: [QUARANTINE] Re: PG service restart failure (start getting ahead of stop?)

Поиск
Список
Период
Сортировка
От George Pavlov
Тема Re: [QUARANTINE] Re: PG service restart failure (start getting ahead of stop?)
Дата
Msg-id 8C5B026B51B6854CBE88121DBF097A86B1EF3D@ehost010-33.exch010.intermedia.net
обсуждение исходный текст
Ответ на Re: PG service restart failure (start getting ahead of stop?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> Well, that makes sense: if the shutdown took more than a
> minute then the
> "stop" script action would give up waiting, and then the
> "start" action
> would see the postmaster running and go away happy.  (It's a bit odd
> that "service start" actions are supposed to treat "already running"
> as OK, but I've been told that that's required by the Linux Standards
> Base and I can't change it.)

thanks, that's good to know. i never realized that's how it behaves.

> The real question here is why'd it take so long to stop?  It should be
> using "mode fast" which'd kick out active queries.

indeed a mystery -- from looking at the query log there didn't seem to
be ANY active queries at the time. seems that > 85% of the session IDs
(84 total) for which i got lines like "2007-04-23 03:05:48 PDT [26987]
FATAL:  the database system is shutting down" did not even have any
preceding query activity. hard to debug retroactively -- it's just
annoying that i don't understand what was different about this restart.

and, yes, i confirmed that it is using fast mode:

  212   $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m
fast" > /dev/null 2>&1 < /dev/null

george

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

Предыдущее
От: Ben
Дата:
Сообщение: reasonable limit to number of schemas in a database?
Следующее
От: Manuel Sugawara
Дата:
Сообщение: Re: Audit-trail engine: getting the application's layer user_id