From: | "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #1131: PQfinish hangs |
Date: | 2004-04-13 14:32:13 |
Message-ID: | 20040413143213.855CECF5195@www.postgresql.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 1131
Logged by: Walter Lbker
Email address: w(dot)luebker(at)t-online(dot)de
PostgreSQL version: 7.4
Operating system: suse linux 8.2
Description: PQfinish hangs
Details:
I'm having some problems using libpq:
Some details:
OS: Suse Linux 8.2
Postgres version 7.4
The Server and client are at the same machine.
I made a connection to the Backend Server using libpq. Establish some
query's. Everything works fine. At end of my program I made a PQfinish.
Sometime's the system hangs in PQfinish !
snip:
if(db->pg_conn != NULL){
ConnStatusType = PQstatus(db->pg_conn);
if(ConnStatusType == CONNECTION_OK){
fprintf(stderr,"vor PQfinish\n\r");
PQfinish(db->pg_conn);
fprintf(stderr,"nach PQfinish\n\r");
}else{
(void)strcpy(dvs_info.subr, "PG_SQL_DENDE");
dvs_info.code = ConnStatusType;
(void)strcpy(dvs_info.sql_cmd, "PQfinish");
(void)strcpy(dvs_info.text, "Fehler bei PQstatus");
dvs_log_error();
}
db->pg_conn = NULL;
}
Any help or ideas greatly appreciated,
Walter
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2004-04-13 14:34:13 | Re: BUG #1130: server terminated by signal 11 (easy to |
Previous Message | PostgreSQL Bugs List | 2004-04-13 14:05:00 | BUG #1130: server terminated by signal 11 (easy to duplicate) |