Re: BUG #2059: PGConnect fails when used in a thread

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chris Storah" <chris(dot)storah(at)orionsmg(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2059: PGConnect fails when used in a thread
Date: 2005-11-21 15:08:32
Message-ID: 1758.1132585712@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Chris Storah" <chris(dot)storah(at)orionsmg(dot)com> writes:
> fe-connect.c - parseServiceInfo is failing because no service option is
> being used in the connection string so service is NULL. The line that fails
> is the 'snprintf(serviceFile, MAXPGPATH, "%s/pg_service.conf", ...) line.

Huh? That statement doesn't use 'service', so your analysis makes no
sense. I agree it's a bit inefficient as coded, but I can't see that it
would crash. You have other problems to look for.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Begley 2005-11-21 15:59:39 BUG #2062: Timezone unrecognised
Previous Message Harald Armin Massa 2005-11-21 14:40:37 strange disappearence of postgres file