Re: Cancel/Kill backend functions

From: Neil Conway <neilc(at)samurai(dot)com>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Cancel/Kill backend functions
Date: 2004-05-22 07:59:50
Message-ID: 40AF0876.4010604@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Magnus Hagander wrote:
> Per previous discussions, here are two functions to send INT and TERM
> signals to other backends.They permit only INT and TERM, and permits
> sending only to postgresql backends (as registered in pgstat).

Why does this depend on pgstat? ISTM it would be better to use the
per-backend PGPROC information, which is stored in shared memory.
Consider TransactionIdIsInProgress() for an example.

-Neil

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2004-05-22 18:44:54 Re: Cancel/Kill backend functions
Previous Message Matthew T. O'Connor 2004-05-22 07:47:56 pg_autovacuum fixes