current_database()

From: Rod Taylor <rbt(at)zort(dot)ca>
To: pgsql-patches(at)postgresql(dot)org
Subject: current_database()
Date: 2002-08-07 01:15:03
Message-ID: 1028682904.93791.5.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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

Attachment Content-Type Size
current_database.patch text/x-patch 2.2 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Rod Taylor 2002-08-07 01:17:41 Foreign key in pg_dump / psql
Previous Message Alvaro Herrera 2002-08-07 00:16:40 CLUSTER patch and regression test