pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connection of postgres
9+ messages / 4 participants
[nested] [flat]

* Connection of postgres
@ 2008-04-03 14:04  Nguyen, Lam Thuy <l7nguyen@fcg.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Nguyen, Lam Thuy @ 2008-04-03 14:04 UTC (permalink / raw)
  To: Malm Paul <paul.malm@saabgroup.com>; pgsql-odbc

Hey,
 
I have a problem with connection of postgres.
I am using postgres 8.03.01.
 
I have a telecom program which have 248 channels and each channel hold a connection to postgres database, mean i have 248 opening connections.
 
When a channel is run, it means it begin to excute some queries to postgres, i got the error :  SQL Error State:   08S01

                                    Native Error Code: 1A

                                    ODBC Error:        Could not send
Query(connection dead);

                          Could not send Query(connection dead)

 
Could you help me on this ?
 
 
Thanks you very much
Lam
 
 
 
 
 

This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection of postgres
@ 2008-04-07 01:35  Andrei Kovalevski <andyk@commandprompt.com>
  parent: Nguyen, Lam Thuy <l7nguyen@fcg.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Andrei Kovalevski @ 2008-04-07 01:35 UTC (permalink / raw)
  To: Nguyen, Lam Thuy <l7nguyen@fcg.com>; +Cc: Malm Paul <paul.malm@saabgroup.com>; pgsql-odbc

Hello,

Does it happen after some idle period?

Nguyen, Lam Thuy wrote:
> Hey,
>  
> I have a problem with connection of postgres.
> I am using postgres 8.03.01.
>  
> I have a telecom program which have 248 channels and each channel hold a connection to postgres database, mean i have 248 opening connections.
>  
> When a channel is run, it means it begin to excute some queries to postgres, i got the error :  SQL Error State:   08S01
>
>                                     Native Error Code: 1A
>
>                                     ODBC Error:        Could not send
> Query(connection dead);
>
>                           Could not send Query(connection dead)
>
>  
> Could you help me on this ?
>  
>  
> Thanks you very much
> Lam
>  
>  
>  
>  
>  
>
> This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.
>
>   


-- 
Andrei Kovalevski
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection of postgres
@ 2008-04-07 01:38  Nguyen, Lam Thuy <l7nguyen@fcg.com>
  parent: Andrei Kovalevski <andyk@commandprompt.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Nguyen, Lam Thuy @ 2008-04-07 01:38 UTC (permalink / raw)
  To: Andrei Kovalevski <andyk@commandprompt.com>; +Cc: Malm Paul <paul.malm@saabgroup.com>; pgsql-odbc

yes, it is right.

________________________________

From: Andrei Kovalevski [mailto:andyk@commandprompt.com]
Sent: Sun 4/6/2008 9:35 PM
To: Nguyen, Lam Thuy
Cc: Malm Paul; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Connection of postgres



Hello,

Does it happen after some idle period?

Nguyen, Lam Thuy wrote:
> Hey,
> 
> I have a problem with connection of postgres.
> I am using postgres 8.03.01.
> 
> I have a telecom program which have 248 channels and each channel hold a connection to postgres database, mean i have 248 opening connections.
> 
> When a channel is run, it means it begin to excute some queries to postgres, i got the error :  SQL Error State:   08S01
>
>                                     Native Error Code: 1A
>
>                                     ODBC Error:        Could not send
> Query(connection dead);
>
>                           Could not send Query(connection dead)
>
> 
> Could you help me on this ?
> 
> 
> Thanks you very much
> Lam
> 
> 
> 
> 
> 
>
> This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.
>
>  


--
Andrei Kovalevski
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/




This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection of postgres
@ 2008-04-07 02:26  Andrei Kovalevski <andyk@commandprompt.com>
  parent: Nguyen, Lam Thuy <l7nguyen@fcg.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Andrei Kovalevski @ 2008-04-07 02:26 UTC (permalink / raw)
  To: Nguyen, Lam Thuy <l7nguyen@fcg.com>; +Cc: Malm Paul <paul.malm@saabgroup.com>; pgsql-odbc

I'm figuring similar behaviour with Linux PostgreSQL server  and Win32 
client, connection over Internet (not LAN). Not sure what is the source 
of this problem but it could be something network relative.

Nguyen, Lam Thuy wrote:
> yes, it is right.
>
> ________________________________
>
> From: Andrei Kovalevski [mailto:andyk@commandprompt.com]
> Sent: Sun 4/6/2008 9:35 PM
> To: Nguyen, Lam Thuy
> Cc: Malm Paul; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Connection of postgres
>
>
>
> Hello,
>
> Does it happen after some idle period?
>
> Nguyen, Lam Thuy wrote:
>   
>> Hey,
>>
>> I have a problem with connection of postgres.
>> I am using postgres 8.03.01.
>>
>> I have a telecom program which have 248 channels and each channel hold a connection to postgres database, mean i have 248 opening connections.
>>
>> When a channel is run, it means it begin to excute some queries to postgres, i got the error :  SQL Error State:   08S01
>>
>>                                     Native Error Code: 1A
>>
>>                                     ODBC Error:        Could not send
>> Query(connection dead);
>>
>>                           Could not send Query(connection dead)
>>
>>
>> Could you help me on this ?
>>
>>
>> Thanks you very much
>> Lam
>>
>>
>>
>>
>>
>>
>> This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.
>>
>>  
>>     
>
>
> --
> Andrei Kovalevski
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
> Managed Services, Shared and Dedicated Hosting
> Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/
>
>
>
>
> This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.
>
>   


-- 
Andrei Kovalevski
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection of postgres
@ 2008-04-07 02:40  Nguyen, Lam Thuy <l7nguyen@fcg.com>
  parent: Andrei Kovalevski <andyk@commandprompt.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Nguyen, Lam Thuy @ 2008-04-07 02:40 UTC (permalink / raw)
  To: Andrei Kovalevski <andyk@commandprompt.com>; +Cc: Malm Paul <paul.malm@saabgroup.com>; pgsql-odbc

Kovalevski ,
 
I am sure there was no prolem with network. I guess maybe postgres database can not handle if there are many connections work concurrenly.
 
Lam

________________________________

From: Andrei Kovalevski [mailto:andyk@commandprompt.com]
Sent: Sun 4/6/2008 10:26 PM
To: Nguyen, Lam Thuy
Cc: Malm Paul; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Connection of postgres


I'm figuring similar behaviour with Linux PostgreSQL server  and Win32 client, connection over Internet (not LAN). Not sure what is the source of this problem but it could be something network relative.

Nguyen, Lam Thuy wrote: 

	yes, it is right.
	
	________________________________
	
	From: Andrei Kovalevski [mailto:andyk@commandprompt.com]
	Sent: Sun 4/6/2008 9:35 PM
	To: Nguyen, Lam Thuy
	Cc: Malm Paul; pgsql-odbc@postgresql.org
	Subject: Re: [ODBC] Connection of postgres
	
	
	
	Hello,
	
	Does it happen after some idle period?
	
	Nguyen, Lam Thuy wrote:
	  

		Hey,
		
		I have a problem with connection of postgres.
		I am using postgres 8.03.01.
		
		I have a telecom program which have 248 channels and each channel hold a connection to postgres database, mean i have 248 opening connections.
		
		When a channel is run, it means it begin to excute some queries to postgres, i got the error :  SQL Error State:   08S01
		
		                                    Native Error Code: 1A
		
		                                    ODBC Error:        Could not send
		Query(connection dead);
		
		                          Could not send Query(connection dead)
		
		
		Could you help me on this ?
		
		
		Thanks you very much
		Lam
		
		
		
		
		
		
		This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.
		
		 
		    

	--
	Andrei Kovalevski
	PostgreSQL Replication, Consulting, Custom Development, 24x7 support
	Managed Services, Shared and Dedicated Hosting
	Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/
	
	
	
	
	This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.
	
	  



-- 
Andrei Kovalevski
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection of postgres
@ 2008-04-07 15:05  Raymond O'Donnell <rod@iol.ie>
  parent: Nguyen, Lam Thuy <l7nguyen@fcg.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Raymond O'Donnell @ 2008-04-07 15:05 UTC (permalink / raw)
  To: Nguyen, Lam Thuy <l7nguyen@fcg.com>; +Cc: Andrei Kovalevski <andyk@commandprompt.com>; Malm Paul <paul.malm@saabgroup.com>; pgsql-odbc

On 07/04/2008 03:40, Nguyen, Lam Thuy wrote:

> I am sure there was no prolem with network. I guess maybe postgres
> database can not handle if there are many connections work
> concurrenly.

That's not so - if you've configured it correctly, if your hardware can 
handle it, PostgreSQL scales *very* well. What have you got 
max_connections set to in postgresql.conf?

Ray.


------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection of postgres
@ 2008-04-07 18:02  Nguyen, Lam Thuy <l7nguyen@fcg.com>
  parent: Raymond O'Donnell <rod@iol.ie>
  0 siblings, 1 reply; 9+ messages in thread

From: Nguyen, Lam Thuy @ 2008-04-07 18:02 UTC (permalink / raw)
  To: rod@iol.ie; +Cc: Andrei Kovalevski <andyk@commandprompt.com>; Malm Paul <paul.malm@saabgroup.com>; pgsql-odbc

I set it up to 300.
Do you have any solution for me?
 
Lam

________________________________

From: Raymond O'Donnell [mailto:rod@iol.ie]
Sent: Mon 4/7/2008 11:05 AM
To: Nguyen, Lam Thuy
Cc: Andrei Kovalevski; Malm Paul; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Connection of postgres



On 07/04/2008 03:40, Nguyen, Lam Thuy wrote:

> I am sure there was no prolem with network. I guess maybe postgres
> database can not handle if there are many connections work
> concurrenly.

That's not so - if you've configured it correctly, if your hardware can
handle it, PostgreSQL scales *very* well. What have you got
max_connections set to in postgresql.conf?

Ray.


------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------



This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection of postgres
@ 2008-04-09 18:40  Adam M <gnuman1@gmail.com>
  parent: Nguyen, Lam Thuy <l7nguyen@fcg.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Adam M @ 2008-04-09 18:40 UTC (permalink / raw)
  To: ; +Cc: pgsql-odbc

I've had a similar "problem". The connection times out and get closed
after a few hours. The solution was to do a query to keep the database
alive, for example "SELECT 1" and that's all. That is done every few
minutes.

The real test is to open 250 connections, and issue queries on each
without idle time. Does connection drop occur on active connections?



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection of postgres
@ 2008-04-09 18:57  Nguyen, Lam Thuy <l7nguyen@fcg.com>
  parent: Adam M <gnuman1@gmail.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Nguyen, Lam Thuy @ 2008-04-09 18:57 UTC (permalink / raw)
  To: Adam M <gnuman1@gmail.com>; +Cc: pgsql-odbc

i open connection, and leave it for few hour, and then excute query, and get error.

________________________________

From: pgsql-odbc-owner@postgresql.org on behalf of Adam M
Sent: Wed 4/9/2008 2:40 PM
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Connection of postgres



I've had a similar "problem". The connection times out and get closed
after a few hours. The solution was to do a query to keep the database
alive, for example "SELECT 1" and that's all. That is done every few
minutes.

The real test is to open 250 connections, and issue queries on each
without idle time. Does connection drop occur on active connections?

--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient.  Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.



^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2008-04-09 18:57 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-04-03 14:04 Connection of postgres Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-04-07 01:35 ` Andrei Kovalevski <andyk@commandprompt.com>
2008-04-07 01:38   ` Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-04-07 02:26     ` Andrei Kovalevski <andyk@commandprompt.com>
2008-04-07 02:40       ` Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-04-07 15:05         ` Raymond O'Donnell <rod@iol.ie>
2008-04-07 18:02           ` Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-04-09 18:40             ` Adam M <gnuman1@gmail.com>
2008-04-09 18:57               ` Nguyen, Lam Thuy <l7nguyen@fcg.com>

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