X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5F3283A2C10 for ; Sat, 15 Jan 2005 10:00:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95869-02 for ; Sat, 15 Jan 2005 10:00:35 +0000 (GMT) Received: from Mail2.KONTENT.De (mail2.kontent.de [81.88.34.59]) by svr1.postgresql.org (Postfix) with ESMTP id 5B13F3A2C0D for ; Sat, 15 Jan 2005 10:00:36 +0000 (GMT) Received: from jedi.local (p508CDAB3.dip0.t-ipconnect.de [80.140.218.179]) by Mail2.KONTENT.De (Postfix) with ESMTP id F0A6638806D for ; Sat, 15 Jan 2005 11:00:33 +0100 (CET) Received: from anakin (anakin.behrens.de [192.168.150.17]) by jedi.local (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id j0FAUxQ20902 for ; Sat, 15 Jan 2005 11:31:20 +0100 From: lothar.behrens@lollisoft.de To: "Pgsql-Odbc@Postgresql.Org" Date: Sat, 15 Jan 2005 11:00:30 +0100 MIME-Version: 1.0 Subject: Re: pgsqlODBC problems Message-ID: <41E8F7CE.30464.2CF21D@localhost> In-reply-to: <0IA90092R9QE7U@mail.vnet.hu> X-mailer: Pegasus Mail for Windows (4.21c, DE v4.21c R1a) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.463 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, NO_REAL_NAME, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200501/28 X-Sequence-Number: 4823 Am 13 Jan 2005 um 13:33 hat Egy=FCd Csaba geschrieben: > Hi, > I need some information regarding pgsqlODBC driver on Windows2000. We us= e an > application which inserts records pallely into an SQL database via ODBC.= > It estableshes 16 pallel connections and continously inserts data. The > software works well on a test environment with MS Access and MS ODBC dri= ver. > > > Using Postgres the application stopps inserting rows after 2-3 hours. Is > there anybody who uses the postgres ODBC driver 24x7? Is that possible t= hat > the odbc dll contains a memory leak or a bug? > > At the time losing the connection the following entry appears in the > postgres log file: > ------------------------------------------------------------------- > 2005-01-12 00:01:31 LOG: unexpected EOF on client connection > 2005-01-12 00:01:31 LOG: could not receive data from client: No > connection could be made because the target machine actively refused it. > ------------------------------------------------------------------- > Actively refused it: Seems, that the client TCP/IP stack has reached maxim= um open or pending close socket connections. In this state, please check, if you can create new ODBC connections to the= server and see if this works. Check it with netstat -n to see a growing while the= inserts. My own code shows me, that I am also would have too much open connections. A memory problem would be told by the OS and you have not given any client= side log entries. > Other question: After numerous restart of the above mentioned software t= here > are 50-70 connections in postgres (PGAdminIII server status window). How > could I set a timeout for these connections to be destroyed quicker. > If I close my test app, my connections will be closed after a short time. > > (Environment: Win2k, PG8RC2, pgsqlODBC 7.03.02.00) > > > > Thank you very much, > > -- Csaba Egy=FCd. > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005.01.12. > > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 2005.01.12. > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >