pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lothar.behrens@lollisoft.de
To: Pgsql-Odbc@Postgresql.Org <pgsql-odbc@postgresql.org>
Subject: Re: pgsqlODBC problems
Date: Sat, 15 Jan 2005 11:00:30 +0100
Message-ID: <41E8F7CE.30464.2CF21D@localhost> (raw)
In-Reply-To: <0IA90092R9QE7U@mail.vnet.hu>

Am 13 Jan 2005 um 13:33 hat Együd Csaba geschrieben:

> Hi,
> I need some information regarding pgsqlODBC driver on Windows2000. We use 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 driver.
> 
> 
> Using Postgres the application stopps inserting rows after 2-3 hours. Is
> there anybody who uses the postgres ODBC driver 24x7? Is that possible that
> 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 maximum 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 there
> 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üd.
> 
> -- 
> 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
> 





view thread (4+ messages)  latest in thread

Message-ID: <41E8F7CE.30464.2CF21D@localhost>
Permalink:  ../41E8F7CE.30464.2CF21D@localhost/
Also on:    postgresql.org/message-id/41E8F7CE.30464.2CF21D@localhost

 · 

reply

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: lothar.behrens@lollisoft.de
  Subject: Re: pgsqlODBC problems
  In-Reply-To: <41E8F7CE.30464.2CF21D@localhost>
  References: <0IA90092R9QE7U@mail.vnet.hu> <41E8F7CE.30464.2CF21D@localhost>

* 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