postgresql/src/include
Bruce Momjian de9801fc62 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
2002-08-20 04:46:00 +00:00
..
access Reverse out XLogDir/-X write-ahead log handling, per discussion. 2002-08-17 15:12:07 +00:00
bootstrap Update copyright to 2002. 2002-06-20 20:29:54 +00:00
catalog Add current_database(). 2002-08-20 04:46:00 +00:00
commands Tom Lane wrote: 2002-08-15 16:36:08 +00:00
executor ALTER TABLE DROP COLUMN works. Patch by Christopher Kings-Lynne, 2002-08-02 18:15:10 +00:00
lib Update copyright to 2002. 2002-06-20 20:29:54 +00:00
libpq Add db-local user names, per discussion on hackers. 2002-08-18 03:03:26 +00:00
mb Add Cyrillic and other encodings for encoding conversion. 2002-08-14 02:45:10 +00:00
nodes Remove Ident nodetype in favor of using String nodes; this fixes some 2002-08-19 15:08:47 +00:00
optimizer Remove _deadcode. 2002-07-24 19:16:43 +00:00
parser Cause schema-qualified FROM items and schema-qualified variable references 2002-08-08 01:44:31 +00:00
port Not needed anymore. 2002-05-05 16:47:09 +00:00
regex Implement SQL99 OVERLAY(). Allows substitution of a substring in a string. 2002-06-11 15:44:38 +00:00
rewrite The attached patch (against HEAD) implements 2002-07-18 04:43:51 +00:00
storage [ Newest version of patch applied.] 2002-08-17 13:04:19 +00:00
tcop Update copyright to 2002. 2002-06-20 20:29:54 +00:00
utils Add current_database(). 2002-08-20 04:46:00 +00:00
c.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
fmgr.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
funcapi.h Here are two patches. The guc_and_tablefunc patch addresses the two 2002-07-30 16:20:03 +00:00
Makefile Include directory rearrangement 2001-08-28 14:20:28 +00:00
miscadmin.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
pg_config.h.in Change NAMEDATALEN to 64, INDEX_MAX_KEYS/MAX_FUNC_ARGS to 32, per discussion on hackers. 2002-08-13 20:40:44 +00:00
pg_config.h.win32 I'm at the win32 error messages once more. The DLL load thingy doesn't 2002-04-24 02:26:06 +00:00
pgstat.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
postgres_ext.h Change NAMEDATALEN to 64, INDEX_MAX_KEYS/MAX_FUNC_ARGS to 32, per discussion on hackers. 2002-08-13 20:40:44 +00:00
postgres_fe.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
postgres.h This patch removes a lot of unused code related to assertions and 2002-08-10 20:29:18 +00:00
rusagestub.h Update copyright to 2002. 2002-06-20 20:29:54 +00:00
strdup.h Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting. 1997-09-08 02:41:22 +00:00