Re: Setting the process title, or can I? - Mailing list pgsql-sql

From Frank Bax
Subject Re: Setting the process title, or can I?
Date
Msg-id 4F686965.5060306@sympatico.ca
Whole thread Raw
In response to Setting the process title, or can I?  (Bèrto ëd Sèra <berto.d.sera@gmail.com>)
Responses Re: Setting the process title, or can I?  (Bèrto ëd Sèra <berto.d.sera@gmail.com>)
List pgsql-sql
On 03/20/12 06:14, Bèrto ëd Sèra wrote:
>So as a dirty and quick hack to
> make sure our failure filter works I wanted to have an external process
> kill and relaunch the filter from cron each 30 minutes.
>
> Is there anyway I can mark the process running the filter, maybe using
> the update_process_title feature? I'd like to have something I can see
> from a ps command, grep for it and kill -15 it, without wasting our
> scarce resources on one more pg process to use info from pg_stat_activity.


Change your filter so it only runs once; not in a forever loop; then add
the filter to cron to run every minute.

If this new filter continues to freeze; then use pkill to get rid of it.
Hopefully RHEL has a pkill command which works like (ps | grep | kill).


pgsql-sql by date:

Previous
From: Bèrto ëd Sèra
Date:
Subject: Setting the process title, or can I?
Next
From: Bèrto ëd Sèra
Date:
Subject: Re: Setting the process title, or can I?