Re: current_database() - Mailing list pgsql-patches

From Rod Taylor
Subject Re: current_database()
Date
Msg-id 1028683148.93791.11.camel@jester
Whole thread Raw
In response to current_database()  (Rod Taylor <rbt@zort.ca>)
Responses Re: current_database()
List pgsql-patches
On Tue, 2002-08-06 at 21:15, Rod Taylor wrote:
> 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().

It's also a necessity for an informational schema.  The catalog
(database) name is required in a number of places.


pgsql-patches by date:

Previous
From: Rod Taylor
Date:
Subject: Foreign key in pg_dump / psql
Next
From: Bruce Momjian
Date:
Subject: Re: CLUSTER patch and regression test