Re: current_database()

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: current_database()
Дата
Msg-id 200208200446.g7K4k4f21967@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: current_database()  (Rod Taylor <rbt@zort.ca>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Documentation update (pg_get_fkeydef, current_database)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_stat_reset round 4