pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Gould <daveg@sonic.net>
To: pgsql-bugs@lists.postgresql.org
Cc: sigutis@gmail.com
Subject: Re: BUG #15003: pg_terminate_backend does not work
Date: Thu, 11 Jan 2018 03:20:56 -0800
Message-ID: <20180111032056.28a184dd@engels> (raw)
In-Reply-To: <20180111084327.1413.40219@wrigleys.postgresql.org>
References: <20180111084327.1413.40219@wrigleys.postgresql.org>

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.




view thread (2+ messages)

Message-ID: <20180111032056.28a184dd@engels>
Permalink:  ../20180111032056.28a184dd@engels/
Also on:    postgresql.org/message-id/20180111032056.28a184dd@engels

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: daveg@sonic.net, sigutis@gmail.com
  Subject: Re: BUG #15003: pg_terminate_backend does not work
  In-Reply-To: <20180111032056.28a184dd@engels>
  References: <20180111084327.1413.40219@wrigleys.postgresql.org> <20180111032056.28a184dd@engels>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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