Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uh63q-0005UM-Vu for pgsql-odbc@arkaria.postgresql.org; Mon, 27 May 2013 22:38:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Uh63q-00027A-9g for pgsql-odbc@arkaria.postgresql.org; Mon, 27 May 2013 22:38:38 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uh63o-000272-9z for pgsql-odbc@postgresql.org; Mon, 27 May 2013 22:38:36 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uh63g-0001Y9-H2 for pgsql-odbc@postgresql.org; Mon, 27 May 2013 22:38:34 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Uh63f-0001qy-37 for pgsql-odbc@postgresql.org; Mon, 27 May 2013 15:38:27 -0700 Date: Mon, 27 May 2013 15:38:27 -0700 (PDT) From: ljwilson To: pgsql-odbc@postgresql.org Message-ID: <1369694307040-5757049.post@n5.nabble.com> Subject: UseDeclareFetch=1, Fetch=100, UseServerSidePrepare=1 causes Windows client to intermittently hang MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.9 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This weekend I tested at a client site the psqlODBC Windows drivers as of 2013/05/21 (what will eventually be 09.02.0100) from the github source. When printing invoices, intermittently a client (I could reproduce on all three of the test machines) would hang (freeze--must kill with taskmanager). The client might have to print just one, or 13, or as high as 61 individual jobs before the hang would occur. The fix is to set the UseServerSidePrepare back to 0--then no hangs can be reproduced. Enabling mylog makes it much harder to reproduce the hang, but I have been able to produce 4 mylog files using my own test machine that log up to the hang. Here is the end of one of the mylogs when the hang happened: [2228-302.275][SQLFreeStmt][2228-302.275]PGAPI_FreeStmt: entering...hstmt=01B3AA70, fOption=0 [2228-302.275]SC_recycle_statement: self= 01B3AA70 [2228-302.276]QResult: enter DESTRUCTOR [2228-302.276]QResult: in QR_close_result [2228-302.276]CC_cursor_count: self=00B7A6A0, num_stmts=64 [2228-302.276]CC_cursor_count: returning 13 [2228-302.276]CC_send_query: conn=00B7A6A0, query='close "SQL_CUR01B3AA70"' [2228-302.277]in QR_Constructor [2228-302.277]exit QR_Constructor [2228-302.277]SOCK_get_id has to eat 1578 bytes [2228-302.277]SC_set_Result(1c961c0, 1b68380)[2228-302.277]QResult: enter DESTRUCTOR [980-302.277]read 6, global_socket_buffersize=4096 [980-302.278]read -1, global_socket_buffersize=4096 [980-302.278]Lasterror=10035 Thanks...jack -- View this message in context: http://postgresql.1045698.n5.nabble.com/UseDeclareFetch-1-Fetch-100-UseServerSidePrepare-1-causes-Windows-client-to-intermittently-hang-tp5757049.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc