Обсуждение: How to find the database name during run-time

Поиск
Список
Период
Сортировка

How to find the database name during run-time

От
Dave Blasby
Дата:
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