Re: Question regarding pfree and thread safety. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Question regarding pfree and thread safety.
Date
Msg-id 29909.1074267852@sss.pgh.pa.us
Whole thread Raw
In response to Question regarding pfree and thread safety.  ("Thomas Hallgren" <thhal@mailblocks.com>)
List pgsql-hackers
"Thomas Hallgren" <thhal@mailblocks.com> writes:
> Is it safe to call pfree() from multiple threads?

There are no multiple threads in the backend, and no provision whatever
for thread safety.  On anything, not only pfree.  If your Java runtime
cannot be coerced into a single-thread mode of operation, you would be
well advised to keep it at arm's length in a separate process.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: nomenclature
Next
From: Jan Wieck
Date:
Subject: Re: Missed bet in toaster routines