pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsqlODBC problems
4+ messages / 3 participants
[nested] [flat]
* pgsqlODBC problems
@ 2005-01-13 12:33 Együd Csaba <csegyud@vnet.hu>
0 siblings, 2 replies; 4+ messages in thread
From: Együd Csaba @ 2005-01-13 12:33 UTC (permalink / raw)
To: pgsql-general@postgresql.org; pgsql-hackers-win32@postgresql.org; pgsql-odbc
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.
-------------------------------------------------------------------
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.
(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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsqlODBC problems
@ 2005-01-13 17:13 William Yu <wyu@talisys.com>
parent: Együd Csaba <csegyud@vnet.hu>
1 sibling, 0 replies; 4+ messages in thread
From: William Yu @ 2005-01-13 17:13 UTC (permalink / raw)
To: pgsql-general@postgresql.org
I've run into these quirks before using ODBC.
If a table is huge, the ODBC driver will croak if you try to grab the
entire table all at once. I end up needing to use LIMIT xxxx OFFSET yyyy
to get chunks of tables and then piece the table together on the client.
For a transaction encompassing a lot of inserts/updates, I have to break
it up into smaller batches to avoid the the ODBC driver going haywire.
The connections thing is a mystery. Killing the client apps on my end
always disconnects the postgres connection as soon as the last sql
command finishes. Perhaps the MS Access "engine" continues to maintain
the connections behind the scenes?
Együd Csaba wrote:
> 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.
> -------------------------------------------------------------------
>
> 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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsqlODBC problems
@ 2005-01-15 10:00 lothar.behrens@lollisoft.de
parent: Együd Csaba <csegyud@vnet.hu>
1 sibling, 1 reply; 4+ messages in thread
From: lothar.behrens@lollisoft.de @ 2005-01-15 10:00 UTC (permalink / raw)
To: pgsql-odbc
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
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsqlODBC problems
@ 2005-01-15 10:32 Együd Csaba <csegyud@vnet.hu>
parent: lothar.behrens@lollisoft.de
0 siblings, 0 replies; 4+ messages in thread
From: Együd Csaba @ 2005-01-15 10:32 UTC (permalink / raw)
To: lothar.behrens@lollisoft.de; pgsql-odbc
thank you Lothar, I'm going to check these.
bye,
Csaba
-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of
lothar.behrens@lollisoft.de
Sent: Saturday, January 15, 2005 11:01 AM
To: Pgsql-Odbc@Postgresql.Org
Subject: Re: [ODBC] pgsqlODBC problems
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
>
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.12 - Release Date: 2005.01.14.
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.12 - Release Date: 2005.01.14.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.12 - Release Date: 2005.01.14.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.12 - Release Date: 2005.01.14.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-01-15 10:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13 12:33 pgsqlODBC problems Együd Csaba <csegyud@vnet.hu>
2005-01-13 17:13 ` William Yu <wyu@talisys.com>
2005-01-15 10:00 ` lothar.behrens@lollisoft.de
2005-01-15 10:32 ` Együd Csaba <csegyud@vnet.hu>
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