"Thomas Hallgren" <thhal(at)mailblocks(dot)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