WAL Bootstrap/Startup/Shutdown committed...

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема WAL Bootstrap/Startup/Shutdown committed...
Дата
Msg-id 37FBCD10.75BBC025@krs.ru
обсуждение исходный текст
Список pgsql-hackers
gmake clean + initdb (also changed) required.

WAL still doesn't anything but eats 16Mb disk space on bootstrap -:)

Data base system shutdown is changed!

Now, after receiving SIGTERM, postmaster disallows new
connections but let active backend to end their works
and shutdown data base only after all of them terminated
(by client request) - Smart Shutdown.

SIGINT: postmaster disallows new connections,
sends all active backends SIGTERM (abort+exit),
waits for children exits and shutdowns data base
- Fast Shutdown.

SIGQUIT: postmaster terminates children with SIGUSR1
and exits (without shutdowning data base)
- Immediate Shutdown (results in recovery on startup).

I started to clean up backend initialization code: MUST use
locking when read catalog relations and setup MyProc before
acquiring any (except for ProcStructLock) spinlocks.

Also, now FATAL is ERROR + exit.

Vadim


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Re: psql and comments
Следующее
От: Tom Lane
Дата:
Сообщение: ...