The following bug has been logged on the website:
Bug reference: 15003
Logged by: Sigitas Vysniauskas
Email address: sigutis(at)gmail(dot)com
PostgreSQL version: 9.6.5
Operating system: centos-release-7-4.1708.el7.centos.x86_64
Description:
pg_terminate_backend returns true, but it does not terminates backend.
pg_stat_activity:
application_name - "pg_cron"
client_addr - "::1"
state - "active"
query - "select sync_devices_run()"
PostgreSQL 9.6.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5
20150623 (Red Hat 4.8.5-11), 64-bit