The following bug has been logged online:

Bug reference:      1131
Logged by:          Walter Lübker

Email address:      [EMAIL PROTECTED]

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


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply via email to