X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8D3E811F66EC for ; Tue, 4 Apr 2006 12:09:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94174-06 for ; Tue, 4 Apr 2006 12:09:33 -0300 (ADT) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 5C99F11F6602 for ; Tue, 4 Apr 2006 12:09:33 -0300 (ADT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by svr4.postgresql.org (Postfix) with ESMTP id 9F39F5AF894 for ; Tue, 4 Apr 2006 15:09:29 +0000 (GMT) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1FQn9o-000Am9-Is for pgsql-interfaces@postgresql.org; Tue, 04 Apr 2006 18:09:24 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: pgsql-interfaces@postgresql.org Subject: PQconnectdb et.all. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Apr 2006 18:09:24 +0300 From: Danny Braniss Message-ID: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200604/3 X-Sequence-Number: 6094 How can I programatically figure out why PQconnectdb failed? The reason for this is that my daemon needs to know: 1- if to try and reconnect (for example, if it's timing out) 2- abandom, if for example it has not permition. thanks, danny