pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_ctl kill INT vs. pg_cancel_backend
2+ messages / 2 participants
[nested] [flat]
* pg_ctl kill INT vs. pg_cancel_backend
@ 2018-12-08 17:30 Ron <ronljohnsonjr@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Ron @ 2018-12-08 17:30 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi,
Is there a substantive difference between the two, or are they just
different interfaces to the same action?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_ctl kill INT vs. pg_cancel_backend
@ 2018-12-10 07:50 Arthur Zakirov <a.zakirov@postgrespro.ru>
parent: Ron <ronljohnsonjr@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Arthur Zakirov @ 2018-12-10 07:50 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org
Hello,
On 08.12.2018 20:30, Ron wrote:
> Hi,
>
> Is there a substantive difference between the two, or are they just
> different interfaces to the same action?
I think they both only execute kill() and send a signal to a process.
But pg_cancel_backend() after checking privileges sends only SIGINT and
only to a PostgreSQL's backend process.
pg_ctl can send a specified signal to any process. From the documentation:
pg_ctl kill signal_name process_id
Here signal_name is HUP, INT and others.
--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-12-10 07:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-12-08 17:30 pg_ctl kill INT vs. pg_cancel_backend Ron <ronljohnsonjr@gmail.com>
2018-12-10 07:50 ` Arthur Zakirov <a.zakirov@postgrespro.ru>
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