| From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
|---|---|
| To: | "Neil Conway" <neilc(at)samurai(dot)com> |
| Cc: | <pgsql-patches(at)postgresql(dot)org> |
| Subject: | Re: Cancel/Kill backend functions |
| Date: | 2004-05-22 18:44:54 |
| Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCE34BA87@algol.sollentuna.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
>> 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.
I guess the main reason is that I didn't find how to do it. With that
pointer, I can probably redo it.
The other thought is that you're not going to have much use of this if
you don't have pgstat anyway - how are you going to find out which
backends actually exist?
But I could certainly give it a try to recode it on that code.
//Magnus
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Manfred Koizar | 2004-05-22 21:36:00 | Build problems |
| Previous Message | Neil Conway | 2004-05-22 07:59:50 | Re: Cancel/Kill backend functions |