Re: [BUGS] signal 11 segfaults with parallel workers - Mailing list pgsql-bugs

From Andres Freund
Subject Re: [BUGS] signal 11 segfaults with parallel workers
Date
Msg-id 20170808195747.4ki4gzxkqimbev6m@alap3.anarazel.de
Whole thread Raw
In response to Re: [BUGS] signal 11 segfaults with parallel workers  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [BUGS] signal 11 segfaults with parallel workers
List pgsql-bugs
On 2017-08-08 21:55:50 +0200, Michael Paquier wrote:
> On Tue, Aug 8, 2017 at 9:51 PM, Andres Freund <andres@anarazel.de> wrote:
> > Perhaps, for v11, we should actually make sure there's no memory context
> > etc set during _PG_init() to catch such problems earlier? It's a bit
> > nasty to only see them if the shared library is preloaded and/or
> > parallelism is in use.
> 
> Yeah, some prevention like that would be a good idea for module
> developers.

> We could also check for a higher-level thing like being sure that
> there is no transaction context?

Not quite sure what you mean by that? And if you just mean to ensure
that _PG_init() is called outside of a transaction - how? We load shared
libraries on demand when they're used - and that'll frequently be in a
transaction?

- Andres


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [BUGS] signal 11 segfaults with parallel workers
Next
From: Tom Lane
Date:
Subject: [BUGS]