I have a strange situation in my PostgreSQL server. I have the below idle query that keeps running in all databases in the server.
datid | 1029662
datname | ganar
pid | 19022
usesysid | 10
usename | postgres
application_name |
client_addr |
client_hostname |
client_port | -1
backend_start | 2023-08-27 10:10:23.265554+00
xact_start |
query_start | 2023-08-27 10:18:07.886526+00
state_change | 2023-08-27 10:18:07.886626+00
wait_event_type | Client
wait_event | ClientRead
state | idle
backend_xid |
backend_xmin |
query | SELECT version();
backend_type | client backend
If I tried to create a database named "test", it will have the same query running even without connecting to it via the "postgres" user.
datid | 1887973
datname | test
pid | 19021
usesysid | 10
usename | postgres
application_name |
client_addr |
client_hostname |
client_port | -1
backend_start | 2023-08-27 10:10:23.210437+00
xact_start |
query_start | 2023-08-27 10:18:07.885979+00
state_change | 2023-08-27 10:18:07.886143+00
wait_event_type | Client
wait_event | ClientRead
state | idle
backend_xid |
backend_xmin |
query | SELECT version();
backend_type | client backend
I've tried to kill this process but after 5 sec, it's getting created again.
backend_type | client backend, this shows you that some client is doing this.