Difference between terminate/cancel?

From: François Beausoleil <francois(at)teksol(dot)info>
To: Forums postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Difference between terminate/cancel?
Date: 2013-08-13 17:05:52
Message-ID: 6DFB1A68-074D-42B9-8DCF-53DE1C0E8C5E@teksol.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

What is the difference between both? cancel sends QUIT while terminate sends TERM, but what effect does this have on the backends, shared memory, etc?

I had some processes stuck in IDLE in transaction after a machine died (through pgbouncer), and cancel did not close the connections, while terminate did kill the transactions.

The docs at http://www.postgresql.org/docs/9.1/static/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL-TABLE do name the signals, but I can't find other documentation on the effects of TERM/QUIT (I'm on 9.1, but devel says the same thing).

Are there pointers in the docs on the differences?

Thanks!
François

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2013-08-13 17:25:24 Re: Difference between terminate/cancel?
Previous Message Brian Hirt 2013-08-13 16:54:53 View permission error after upgrading from 8.4 -> 9.2