|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
The connection closed unexpectedly - C++ and Postgre
Greetings,
I have a problem with postgresql that connect to a c++ server. I build some system servers that have connection to a postgresql server. When i add many object in the database, and the system server going to shoot the database server with the query. There will be an exception. The exception sound : "Server closed the connection unexpectedly". The configuration of my database server is standard. When i look into the log on database server : "connection reset by peer". Please help me with that problem. Thank you. |
|
#2
|
|||
|
|||
|
Sounds like an error in your client... Try start with some example client code and test if it can connect to your server and run some queries. If it can, then you probably have some sort of pointer-problem in your application writing over something important.
|
|
#3
|
|||
|
|||
|
Already test
The problem is the error will come on some not spesific symptomps. The error not come for sure but for sometimes only. The Queries will be executed with nice return but for sometimes the error will exists.
|
|
#4
|
|||
|
|||
|
To me this sounds like a network problem, rather than a Postgres problem (especially because of the "reset by peer" which I have seen e.g. with Oracle as well and it always boiled down to a network problem)
|
|
#5
|
|||
|
|||
|
One PC
Ok then .... I have implement the system on two ways.
The database server and system server are on the same PC and 1 IP The database server and system serer are on the same PC but run on 2 virtual machine that completely different I think this is not a network problem. I guest the problem is about the memmory allocation, max connection, etc but i already expand it on maximal capacity. But the error sometimes still come out. Thanks. |
![]() |
| Viewing: Dev Shed Forums > Databases > PostgreSQL Help > The connection closed unexpectedly - C++ and Postgre |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|