Re: Execute a function upon a connection made/closed

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Execute a function upon a connection made/closed
Date: 2006-10-13 09:32:38
Message-ID: 20061013093238.GI27503@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Fri, dem 13.10.2006, um 12:25:38 +0300 mailte Uyelik folgendes:
> Hi,
> Is there any way to execute a function upon a new connection made or existing
> one closed?

IIRC no, but you can set variables, perhaps this will help you.
ALTER name SET parameter { TO | = } { value | DEFAULT }

> Is active connections info stored on a table or (?) ?

In a system-view, pg_stat_activity. You can select from there.

HTH, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Uyelik 2006-10-13 09:47:09 Re: Execute a function upon a connection made/closed
Previous Message Uyelik 2006-10-13 09:25:38 Execute a function upon a connection made/closed