Postgres FDW Connection Linux - postgresql

I am actively working with fdw under windows and Linux.
Under windows opened fdw connections on the other side are closed immediately if the main (and reading/writing) connection under windows is closed.
But under Linux opened fdw connections on partner stay active and open even if the initiating connection is closed.
E.g.
Server 1 (Windows)
Server 2 (Linux)
Server 1 makes a connection to his own local database. Within this connection, he writes/read a table which is a table on Server 2 and is represented locally by the fdw. On Server 2 the postgres_fdw connection to server 1 is visible. If server 1 closes the connection to his local database I can see that the postgres_fdw connection on Server 2 is already closed, which is perfect.
The other way round if I do this from Linux the postgres_fdw connection on Server 1 is still existing event if the local connection on Server 2 is closed.
Is there any possibility to config this?

What version of postgres are you running?
Are you using a Web / application server?
There may be a scenario such as nginx with keepalive connections where the HTTP sessions and the number of Postgres sessions grows beyond your PG connection limit

Related

Regarding Heroku Postgres limit of 20 connections, if I close pgadmin will I have to waste another connection?

I connected to my team's Heroku Postgres database through pgAdmin 4, using up 1 out of the 20 connections limit. If I stop the pgAdmin server, will I have to reconnect later when I need it and waste another connection? I'm new to backend and just an intern so I don't want to mess anything up. Thanks for the help

How to identify and re-establish the PostgreSQL connection based on the PostgreSQL server status?

A PostgreSQL connection will be established once the project started running.
The same connection is used by multiple threads for database operations (insertion,selection etc.).
The connection will be gone once the server is down.
Then how to identify it and re-establish the connection as soon as the server is up?

Firebird local vs remote connection

I have a cloud-service based on firebird databases. Every customer has his own database file. So many connection-definitions are loaded into my service at startup. This works all well.
Currently the load for the server is ok so the database files are on the same machine as the service itself. Later I could extend it by another server.
My question is:
Does it matter if I use a local firebird connection or should I prefer a remote connection (via TCP/IP). Although I am on the same machine.
Are there advantages / disadvantages or any limits? I got a lot of requests to this server.
I am using Firebird 2.5.7 (64Bit).

OpenERP - connections to database

I am running OpenERP v6, Windows, PostgreSQL 9.1. When I connect to the database from my Windows OpenERP client, the OpenERP service makes a connection to database. This connection is visible in pgAdmin Server Status window. When I close OpenERP client, the connection is still there. Moreover, if I open OpenERP Client again, then login, the OpenERP service creates another connection to database, visible in Server Status window. Should there be only one connection to database made by OpenERP service for multiple OpenERP Clients? Can someone clarify to me the logic behind the OpenERP connectivity to database? Can this be a bug in the server code? If yes, can you direct to web site where the bug is fixed or to the file name where the relevant code is?
Thanks!
You can run multiple Openerp Server With PostgresSQL 9.1 with changing the port number
You can change the port number by following way:
./openerp-server --xmlrpc-port=8070 --db-filter=your_database_name
You can also manually kill the process which is running on current port number

How to set connection timeout value for pgAdmin?

I am using pgAdmin to connect remotely to my database as phpPgAdmin is a bit limited in its features. Only problem is if I leave the SQL window open without running a query for a few minutes, then it says I need to reconnect.
Is this a setting I need to change in my database to keep remote connections alive for longer or is it a pgAdmin setting?
It is client setting.
You need specify connect_timeout in your config file.
29.1. Database Connection Control Functions
29.14. The Connection Service File