pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: andrew klassen <aptklassen@yahoo.com>
To: pgsql-interfaces@postgresql.org
Subject: is libpq thread safe without configure enable_thread_safety=yes
Date: Thu, 25 Oct 2007 14:15:45 -0700 (PDT)
Message-ID: <731502.39043.qm@web37301.mail.mud.yahoo.com> (raw)

I want to use the libpq in a multithreaded process. I intend to use two 
  different connections for two different threads. The requests and results 
  for each connection will be handled completely by each thread independently. 
  I tried to set enable_thread_safety and enable_thread_safety_force to yes.
  However, the compile fails because of references to pthread routines which are not
  supported by my os. Specifically:
   
  ../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_sigmask'
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_mutex_unlock'
../../../src/interfaces/libpq/libpq.so: undefined reference to `pthread_mutex_lock'
../../../src/interfaces/libpq/libpq.so: undefined reference to `sigwait'
   
  I can change the code to fix this, but I wondering if based on my application it is okay
  to just configure without setting enable_thread_safety.
   
  Thanks for any help.
  Andrew
   

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

view thread (2+ messages)  latest in thread

Message-ID: <731502.39043.qm@web37301.mail.mud.yahoo.com>
Permalink:  ../731502.39043.qm@web37301.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/731502.39043.qm@web37301.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: aptklassen@yahoo.com
  Subject: Re: is libpq thread safe without configure enable_thread_safety=yes
  In-Reply-To: <731502.39043.qm@web37301.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox