From: Marco Gaiarin <gaio@sv.lnf.it>
To: pgsql-odbc@postgresql.org
Subject: Postgres 9.1 -> 9.4, ODBC timeout on complex query...
Date: Tue, 30 Apr 2019 17:31:07 +0200
Message-ID: <20190430153107.GN3578@sv.lnf.it> (raw)
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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: gaio@sv.lnf.it
Subject: Re: Postgres 9.1 -> 9.4, ODBC timeout on complex query...
In-Reply-To: <20190430153107.GN3578@sv.lnf.it>
References: <20190430153107.GN3578@sv.lnf.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox