Re: Current database name

Поиск
Список
Период
Сортировка
От Alexander Solianic
Тема Re: Current database name
Дата
Msg-id 3b1e3074@news.telekom.ru
обсуждение исходный текст
Ответ на Re: Current database name  (Manuel Sugawara <masm@fciencias.unam.mx>)
Список pgsql-general
Manuel Sugawara wrote:

> Alexander Solianic <solianic@yahoo.com> writes:
>
>> Hi, Posgres Gurus!
>>
>> Does anybody know if there's a way to get name of the current
>> session's database in stored procedure, i.e. something like
>> CURRENT_USER variable?
>
> what's wrong with current_user?

nothing wrong with it, but I asked "is there a function/variable similar
to CURRENT_USER, SESSION_USER etc, that returns the name of the
current (connected) *database*".

--
Regards,
Alexander Solianic

В списке pgsql-general по дате отправления:

Предыдущее
От: "Juan Pablo Gomez"
Дата:
Сообщение: DESIGN A DATABASE TO STORE CAD FILES
Следующее
От: Peter Pilsl
Дата:
Сообщение: select, where and null-values (or: select null<>'1' is fuzzy)