citus/src/backend/distributed/connection
Önder Kalacı a919f09c96
Remove the entries from the shared connection counter hash when no connections remain (#3775)
We initially considered removing entries just before any change to
pg_dist_node. However, that ended-up being very complex and making
MX even more complex.

Instead, we're switching to a simpler solution, where we remove entries
when the counter gets to 0.

With certain workloads, this may have some performance penalty. But, two
notes on that:
 - When counter == 0, it implies that the cluster is not busy
 - With cached connections, that's not possible
2020-04-17 17:14:58 +03:00
..
connection_configuration.c GetConnParams: Set runtimeParamStart before setting keywords/values to avoid out of bounds access 2020-04-10 13:14:06 +00:00
connection_management.c Issue worker messages with the same log level 2020-04-14 21:08:25 +02:00
placement_connection.c Replace foreach with foreach_ptr/foreach_oid (#3544) 2020-02-27 16:54:49 +01:00
remote_commands.c Replace foreach with foreach_ptr/foreach_oid (#3544) 2020-02-27 16:54:49 +01:00
shared_connection_stats.c Remove the entries from the shared connection counter hash when no connections remain (#3775) 2020-04-17 17:14:58 +03:00
worker_log_messages.c Issue worker messages with the same log level 2020-04-14 21:08:25 +02:00