Re: Current database name - Mailing list pgsql-general

From Alexander Solianic
Subject Re: Current database name
Date
Msg-id 3b1e3074@news.telekom.ru
Whole thread Raw
In response to Re: Current database name  (Manuel Sugawara <masm@fciencias.unam.mx>)
List 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 by date:

Previous
From: "Juan Pablo Gomez"
Date:
Subject: DESIGN A DATABASE TO STORE CAD FILES
Next
From: Peter Pilsl
Date:
Subject: select, where and null-values (or: select null<>'1' is fuzzy)