How to find the database name during run-time - Mailing list pgsql-hackers

From Dave Blasby
Subject How to find the database name during run-time
Date
Msg-id 3B684350.45CA9812@refractions.net
Whole thread Raw
List pgsql-hackers
I have a function (plpgsql) and would like it to have access to the name
of the current database.  Unfortunately, I dont know how to ask the
question.

I've look in the documentation, and I can get a list of possible
databases from pg_database, but I dont know which one I'm currently in.

dave


pgsql-hackers by date:

Previous
From: Dave Blasby
Date:
Subject: Accessing different databases in a cluster
Next
From: "Mikheev, Vadim"
Date:
Subject: Using POSIX mutex-es