pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15003: pg_terminate_backend does not work
2+ messages / 2 participants
[nested] [flat]
* BUG #15003: pg_terminate_backend does not work
@ 2018-01-11 08:43 PG Bug reporting form <noreply@postgresql.org>
2018-01-11 11:20 ` Re: BUG #15003: pg_terminate_backend does not work David Gould <daveg@sonic.net>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2018-01-11 08:43 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: sigutis@gmail.com
The following bug has been logged on the website:
Bug reference: 15003
Logged by: Sigitas Vysniauskas
Email address: sigutis@gmail.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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #15003: pg_terminate_backend does not work
2018-01-11 08:43 BUG #15003: pg_terminate_backend does not work PG Bug reporting form <noreply@postgresql.org>
@ 2018-01-11 11:20 ` David Gould <daveg@sonic.net>
0 siblings, 0 replies; 2+ messages in thread
From: David Gould @ 2018-01-11 11:20 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: sigutis@gmail.com
On Thu, 11 Jan 2018 08:43:27 +0000
PG Bug reporting form <noreply@postgresql.org> wrote:
> pg_terminate_backend returns true, but it does not terminates backend.
>
> query - "select sync_devices_run()"
Does the function sync_devices_run() do any sort of IO other than database
queries? pg_terminate_backend() can only terminate queries that are running
postgresql code, so if the function is making a blocking system call for
example, network IO pg_terminate_backend() can't do anything.
-dg
--
David Gould daveg@sonic.net
If simplicity worked, the world would be overrun with insects.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-01-11 11:20 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-11 08:43 BUG #15003: pg_terminate_backend does not work PG Bug reporting form <noreply@postgresql.org>
2018-01-11 11:20 ` David Gould <daveg@sonic.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox