-
- Downloads
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
Showing
- doc/src/sgml/func.sgml 6 additions, 1 deletiondoc/src/sgml/func.sgml
- src/backend/utils/adt/misc.c 18 additions, 1 deletionsrc/backend/utils/adt/misc.c
- src/include/catalog/pg_proc.h 4 additions, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/utils/builtins.h 2 additions, 1 deletionsrc/include/utils/builtins.h
Loading
Please register or sign in to comment