--enable-thread-safety?

Started by Palle Girgensohnover 20 years ago3 messages
#1Palle Girgensohn
girgen@pingpong.net

Hi!

Need a piece of advice here. I'm wrapping up the ports for FreeBSD, and jus
wonder if it is perhaps clever to always add --enable-thread-safety to the
configure args. Is there a big enough penalty for having it off by default,
or can I just have it on always?

/Palle

#2Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Palle Girgensohn (#1)
Re: --enable-thread-safety?

Palle Girgensohn wrote:

Hi!

Need a piece of advice here. I'm wrapping up the ports for FreeBSD, and jus
wonder if it is perhaps clever to always add --enable-thread-safety to the
configure args. Is there a big enough penalty for having it off by default,
or can I just have it on always?

I don't think there is any real penalty in PostgreSQL for having it on.
I don't know what the operating system overhead is on FreeBSD.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#2)
Re: --enable-thread-safety?

Bruce Momjian <pgman@candle.pha.pa.us> writes:

Palle Girgensohn wrote:

Need a piece of advice here. I'm wrapping up the ports for FreeBSD, and jus
wonder if it is perhaps clever to always add --enable-thread-safety to the
configure args. Is there a big enough penalty for having it off by default,
or can I just have it on always?

I don't think there is any real penalty in PostgreSQL for having it on.
I don't know what the operating system overhead is on FreeBSD.

More to the point: the overhead if any is all at the libc level.
If your libc is such that there isn't any penalty for thread support
(perhaps better stated "you pay the overhead whether you want it or
not") then go for it. I believe this is the case in recent Linuxen,
but I don't know the state of play in BSDen.

regards, tom lane