From: | "Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr> |
---|---|
To: | "Mattias Kregert" <mattias(at)kregert(dot)se>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Q: Executing functions at connect/disconnect? |
Date: | 2003-07-03 18:37:08 |
Message-ID: | 002501c34192$1d5d4bb0$538abfd5@darko |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
----- Original Message -----
From: "Mattias Kregert" <mattias(at)kregert(dot)se>
To: <pgsql-general(at)postgresql(dot)org>
Cc: "Darko Prenosil" <darko(dot)prenosil(at)finteh(dot)hr>
Sent: Friday, July 04, 2003 7:11 PM
Subject: Re: [GENERAL] Q: Executing functions at connect/disconnect?
Is it possible to use pg_backend_pid() or pg_stat_activity in some way?
I tried to put a rule on pg_stat_activity:
create rule cleanup as on delete to pg_stat_activity do ... <cleanup code>
...but it does not work... i disconnected and the backend was removed from
pg_stat_activity, but the rule did not execute... does anybody know why??
This is an interesting idea !
But unfortunately, I think that triggers and rules are not working on system
objects.
However, I'll try it myself.
Regards !
From | Date | Subject | |
---|---|---|---|
Next Message | jose antonio leo | 2003-07-03 18:37:27 | Update from select?? |
Previous Message | Darko Prenosil | 2003-07-03 18:33:07 | Re: Q: Executing functions at connect/disconnect? |