How to find the database name during run-time

Started by Dave Blasbyover 24 years ago1 messages
#1Dave Blasby
dblasby@refractions.net

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