pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-odbc@postgresql.org
Cc: Anoop Kumar <anoopk@pervasive-postgres.com>
Cc: Magnus Hagander <mha@sollentuna.net>
Subject: Re: Libpq driver: thread problem
Date: Thu, 14 Jul 2005 12:16:50 -0400 (EDT)
Message-ID: <200507141616.j6EGGoB18114@candle.pha.pa.us> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9261@ratbert.vale-housing.co.uk>

Dave Page wrote:
> > The main issue with the flag, as I remember, is to allow multiple
> > threads to open libpq connections.  If you don't do that, you 
> > don't need
> > the flag.
> 
> In which case it definitely needs fixing. Which may be a non-trivial
> task as pthreads on Windows is not currently used by PostgreSQL, and
> didn't want to play last time I looked at it :-( However...
> 
> I did look at this very briefly before speaking to Magnus. The first
> problem I ran into was that configure was insisting that posix signals
> were needed to enable thread safety. Before I spend lots of time looking
> at the code do you know if it is safe for me to assume our signal
> emaulation will do that job in all the right places? If so, I guess it's
> just a case of fixing the pthread detection and linker flags.

Ewe.  I bet we added that test program _after_ we got threads working on
Win32.  That program, and the flags detection configure checks have made
threads configuration almost fool-proof, so I don't think we should
change any of that.

As far as the Win32 API, I am unsure.  Let me see if I can hack up
thread_test.c to use libpq/pthread-win32.c to see if I can get that
working.

-- 
  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



view thread (13+ messages)  latest in thread

Message-ID: <200507141616.j6EGGoB18114@candle.pha.pa.us>
Permalink:  ../200507141616.j6EGGoB18114@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200507141616.j6EGGoB18114@candle.pha.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: pgman@candle.pha.pa.us, dpage@vale-housing.co.uk, anoopk@pervasive-postgres.com, mha@sollentuna.net
  Subject: Re: Libpq driver: thread problem
  In-Reply-To: <200507141616.j6EGGoB18114@candle.pha.pa.us>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9261@ratbert.vale-housing.co.uk> <200507141616.j6EGGoB18114@candle.pha.pa.us>

* 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