Re: Is SPI safe to use in multi-threaded PL/Java?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "MauMau" <maumau307(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Is SPI safe to use in multi-threaded PL/Java?
Date: 2014-03-08 16:28:21
Message-ID: 17633.1394296101@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"MauMau" <maumau307(at)gmail(dot)com> writes:
> Is PL/Java safe to use in terms of its threading design? I'm going to ask
> the PL/Java community about this too, but I'd ask for opinions here because
> I believe people in this community have seasoned knowledge of OS and SPI.

> To put the question in other words, is it safe to load a multi-threaded PL
> library in the single-threaded backend process, if the PL only calls SPI in
> the main thread?

When it breaks, we're not going to be concerned.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-03-08 16:31:22 Re: Little confusing things about client_min_messages.
Previous Message Tom Lane 2014-03-08 16:26:42 Re: Shave a few instructions from child-process startup sequence