Re: windows doesn't notice backend death - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: windows doesn't notice backend death
Date
Msg-id 20090504004322.GA8098@alvh.no-ip.org
Whole thread Raw
In response to Re: windows doesn't notice backend death  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: windows doesn't notice backend death  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

> Up to now we've always just dismissed the above possibility as
> "superusers should know better", but I think there's a reasonable case
> to be made that this is an obvious failure mode and we should put a bit
> more effort into being robust against it.  With more and more external
> code being routinely run in the backend, who wants to swear that there
> is no "exit(1)" in the guts of libperl or libxml or whatever?

FWIW there is (or there was, last time I looked) an exit(1) call in the
guts of the PHP library that PL/php uses, which is triggered when the
memory used goes over the configured memory limit.  It was very easily
triggered with some of the test functions we had on our regression
tests, and the only solution was to kludge up the limit.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_resetxlog bug?
Next
From: Tom Lane
Date:
Subject: Re: windows doesn't notice backend death