| From: | Berend Tober <btober(at)seaworthysys(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Feature-Request: Login-Procedure |
| Date: | 2006-05-11 12:45:48 |
| Message-ID: | 446331FC.7000103@seaworthysys.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Tino Wildenhain wrote:
> A. Kretschmer schrieb:
>> Someone asks for a Login-Procedure like Sybase:
>>
>> set OPTION PUBLIC.LOGIN_PROCEDURE='meine_tolle_prozedur';
>>
>> I think, this i possibly a nice feature, either per user or for all
>> users. We have a 'ALTER USER name SET parameter ...', simply add a new
>> Parameter 'login_procedure' and call this procedure?
>>
> I wonder what this procedure should do? :-)
If I had something like this (what I would describe as an "ON CONNECT
TRIGGER"), I'd use it to update a table identifying the last time a user
logged in to the data base. Or maybe even use it to update their
password expiration date to NOW()+30 DAYS, so that the data base
automatically expires accounts that aren't being used.
Regards,
Berend Tober
| Attachment | Content-Type | Size |
|---|---|---|
| btober.vcf | text/x-vcard | 233 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nikolay Samokhvalov | 2006-05-11 13:08:09 | Re: Debugging SQL queries |
| Previous Message | Sim Zacks | 2006-05-11 11:16:55 | Re: understanding explain data |