Connecting Tech Pros Worldwide Forums | Help | Site Map

execute function after user connect

John DeSoi
Guest
 
Posts: n/a
#1: Nov 23 '05
Is there a mechanism to execute a function after the user connects to
the database? I would like to set the schema path based on the user's
group membership. It would also be nice to log to a table on
connect/disconnect.

Thanks,

John DeSoi, Ph.D.


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Bruno Wolff III
Guest
 
Posts: n/a
#2: Nov 23 '05

re: execute function after user connect


On Fri, Apr 02, 2004 at 11:58:42 -0500,
John DeSoi <jd@icx.net> wrote:[color=blue]
> Is there a mechanism to execute a function after the user connects to
> the database? I would like to set the schema path based on the user's
> group membership. It would also be nice to log to a table on
> connect/disconnect.[/color]

You can set the schema path based on the user or the database (but not
both at once), using ALTER USER or ALTER DATABASE.

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Closed Thread