Re: backend hangs at immediate shutdown - Mailing list pgsql-hackers

From Andres Freund
Subject Re: backend hangs at immediate shutdown
Date
Msg-id 20130130233653.GA1584@awork2.anarazel.de
Whole thread Raw
In response to Re: backend hangs at immediate shutdown  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: backend hangs at immediate shutdown
Re: backend hangs at immediate shutdown
List pgsql-hackers
On 2013-01-31 08:27:13 +0900, Tatsuo Ishii wrote:
> > This isn't an area that admits of quick-fix solutions --- everything
> > we might do has disadvantages.  Also, the lack of complaints to date
> > shows that the problem is not so large as to justify panic responses.
> > I'm not really inclined to mess around with a tradeoff that's been
> > working pretty well for a dozen years or more.
> 
> What about adding a caution to the doc something like:
> 
>      "pg_ctl -m -i stop" may cause a PostgreSQL hang if native laguage support enabled.

That doesn't entirely solve the problem, see quote and reply in
6845.1359561252@sss.pgh.pa.us

I think adding errmsg_raw() or somesuch that doesn't allocate any memory
and only accepts constant strings could solve the problem more
completely, at the obvious price of not allowing translated strings
directly.
Those could be pretranslated during startup, but thats mighty ugly.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: backend hangs at immediate shutdown
Next
From: Tom Lane
Date:
Subject: Re: backend hangs at immediate shutdown