Re: [HACKERS] Autovacuum launcher occurs error when cancelled bySIGINT

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [HACKERS] Autovacuum launcher occurs error when cancelled bySIGINT
Дата
Msg-id 20170622220259.krj6uxcxzspd4of6@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [HACKERS] Autovacuum launcher occurs error when cancelled by SIGINT  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: [HACKERS] Autovacuum launcher occurs error when cancelled by SIGINT  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Thomas Munro wrote:

> I thought about this when designing the DSA API.  I couldn't think of
> any good reason to provide an 'am-I-already-attached?' function
> equivalent to dsm_find_mapping.  It seemed to me that the client code
> shouldn't ever be in any doubt about whether it's attached, and that
> wilfully or absent-mindedly throwing away dsa_area pointers and having
> to ask for them again doesn't seem like a very good design.  I suspect
> the same applies to dsm_find_mapping, and I don't see any callers in
> the source tree or indeed anywhere on the internet (based on a quick
> Google search).  But I could be missing something.

I think such an API call is potentially useful for things like assertion
checks, if nothing else.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Proposal : For Auto-Prewarm.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] initdb initalization failure for collation "ja_JP"