Re: PostGres Doubt - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PostGres Doubt
Date
Msg-id 2343.1024024621@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostGres Doubt  (David Ford <david+cert@blue-labs.org>)
List pgsql-hackers
David Ford <david+cert@blue-labs.org> writes:
> I'm using md5 in pg_hba.conf.  That is the method, no?
> I'm writing a milter application which instantiates a private resource 
> for each thread upon thread startup.  I have priv->conn which I 
> establish as priv->conn=PQconnectdb(connstr), connstr is const char 
> *connstr="host=10.0.0.5 dbname=bmilter user=username password=password";

> It segfaults depending on it's mood but it tends to happen about 50-70% 
> of the time.

Could you dig out ye olde gdb and figure out *why* it's segfaulting?
At the very least, give us a stack backtrace from a debug-enabled build.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Making serial survive pg_dump
Next
From: Tatsuo Ishii
Date:
Subject: Re: [PATCHES] Chinese GB18030 support is implemented!