Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLUj1-0003rh-Q7 for pgsql-odbc@arkaria.postgresql.org; Tue, 30 Apr 2019 15:31:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hLUj0-0002Nv-Jx for pgsql-odbc@arkaria.postgresql.org; Tue, 30 Apr 2019 15:31:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLUj0-0002NQ-14 for pgsql-odbc@lists.postgresql.org; Tue, 30 Apr 2019 15:31:18 +0000 Received: from smtp3.ngi.it ([88.149.128.20]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hLUiv-0002d8-Li for pgsql-odbc@postgresql.org; Tue, 30 Apr 2019 15:31:16 +0000 Received: from tank.sv.lnf.it (unknown [88.147.114.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp3.ngi.it (Postfix) with ESMTPS id 8E26380CB3 for ; Tue, 30 Apr 2019 17:31:10 +0200 (CEST) Authentication-Results: smtp3.ngi.it; dkim=pass reason="1024-bit key; unprotected key" header.d=sv.lnf.it header.i=@sv.lnf.it header.b=j1RArQEG; dkim-adsp=pass; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sv.lnf.it; s=2017; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=D22IlYi78gWas1YwfSSjmNwpW1SHlJMt0cq1lKAdEVU=; b=j1RArQEGIFcmdPC/rz7q7ospJ/ RW4CqXD2NwIIc436RSOZ0gUuhvZTB0okZpBhjeTVHmb1JIof9YJvqtZvTvXY5/coFV0KDmyvYawjY DCwBDsLJkLU4jlRjiyimjwCfehHrsSoDLngszr58osaHegNszzBxxJ8RlERfgrqlaLJM=; Received: from [10.5.1.3] (helo=vdmsv1.ad.fvg.lnf.it) by tank.sv.lnf.it with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hLUis-000Cek-0T for pgsql-odbc@postgresql.org; Tue, 30 Apr 2019 17:31:10 +0200 Received: from [10.5.1.44] (helo=hermione.sv.lnf.it) by vdmsv1.ad.fvg.lnf.it with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hLUip-0007hs-SN for pgsql-odbc@postgresql.org; Tue, 30 Apr 2019 17:31:07 +0200 Received: by hermione.sv.lnf.it (Postfix, from userid 1000) id C84A6A0013A; Tue, 30 Apr 2019 17:31:07 +0200 (CEST) Date: Tue, 30 Apr 2019 17:31:07 +0200 From: Marco Gaiarin To: pgsql-odbc@postgresql.org Subject: Postgres 9.1 -> 9.4, ODBC timeout on complex query... Message-ID: <20190430153107.GN3578@sv.lnf.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 'Organization: Associazione La Nostra Famiglia - Polo FVG' 'From: Marco Gaiarin ' User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Recently we had a big move from postgres 9.1 to 9.4 on a database. This database get, nightime, accessed via ODBC driver (version 9.00.02.00), rougly for one simple and long query (a full select on a view with 1.6 million row). After upgrading postgres, the system that do the query stop working. Looking at server logs we see only: 2019-04-30 11:22:28 CEST [6490-4] hegos@sissi10 ISTRUZIONE: SELECT dw_accettazioni.id, dw_accettazioni.operatore_id, dw_accettazioni.data_competenza, dw_accettazioni.ora, dw_accettazioni.cod_fiscale, dw_accettazioni.id_prestazioni, dw_accettazioni.durata, dw_accettazioni.note, dw_accettazioni.sede, dw_accettazioni.descrizione, dw_accettazioni.id_descr_tipo_paziente, dw_accettazioni.id_tipo_pagamento, dw_accettazioni.id_enti, dw_accettazioni.id_impegnativa, dw_accettazioni.padiglione, dw_accettazioni.conto_di_contabilita, dw_accettazioni.cdc_id, dw_accettazioni.cdc_livello, dw_accettazioni.cdc_valido_dal 2019-04-30 14:24:22 CEST [32528-1] hegos@sissi10 LOG: invio dati al client fallito: Connessione interrotta dal corrispondente 2019-04-30 14:24:22 CEST [32528-2] hegos@sissi10 ISTRUZIONE: BEGIN;SELECT * FROM DW_ACCETTAZIONI 2019-04-30 14:24:22 CEST [32528-3] hegos@sissi10 FATALE: connessione al client persa 2019-04-30 14:24:22 CEST [32528-4] hegos@sissi10 ISTRUZIONE: BEGIN;SELECT * FROM DW_ACCETTAZIONI (eg 'connection lost', 'connection reset by peer'). Two question: a) something had changed from 9.1 to 9.4 that can trigger the timeout? b) there's something i can tacke on ODBC driver (keepalive?) to prevent timeout? Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)