Re: current_database() - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: current_database()
Date
Msg-id 200208200446.g7K4k4f21967@candle.pha.pa.us
Whole thread Raw
In response to Re: current_database()  (Rod Taylor <rbt@zort.ca>)
List pgsql-patches
Patch applied with docs.  Thanks.

---------------------------------------------------------------------------


Rod Taylor wrote:
> 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.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Documentation update (pg_get_fkeydef, current_database)
Next
From: Bruce Momjian
Date:
Subject: Re: pg_stat_reset round 4