current_database() - Mailing list pgsql-patches

From Rod Taylor
Subject current_database()
Date
Msg-id 1028682904.93791.5.camel@jester
Whole thread Raw
Responses Re: current_database()
Re: current_database()
List pgsql-patches
Quick system function to pull out the current database.

I've used this a number of times to allow stored procedures to find out
where they are.  Especially useful for those that do logging or hit a
remote server.

It's called current_database() to match with current_user().




Attachment

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: CLUSTER patch and regression test
Next
From: Rod Taylor
Date:
Subject: Foreign key in pg_dump / psql