pgsql-server/ oc/src/sgml/func.sgml rc/backend ...

From: momjian(at)postgresql(dot)org (Bruce Momjian - CVS)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/ oc/src/sgml/func.sgml rc/backend ...
Date: 2002-08-20 04:46:00
Message-ID: 20020820044600.003C047631C@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian(at)postgresql(dot)org 02/08/20 00:46:00

Modified files:
doc/src/sgml : func.sgml
src/backend/utils/adt: misc.c
src/include/catalog: pg_proc.h
src/include/utils: builtins.h

Log message:
Add current_database().

> 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.

Rod Taylor

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian - CVS 2002-08-20 04:47:52 pgsql-server/ oc/src/sgml/monitoring.sgml rc/b ...
Previous Message Barry Lind 2002-08-20 04:26:02 pgsql-server/src/interfaces/jdbc/org/postgresq ...