Re: Current database name

From: Alexander Solianic <solianic(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Current database name
Date: 2001-06-06 13:33:12
Message-ID: 3b1e3074@news.telekom.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Manuel Sugawara wrote:

> Alexander Solianic <solianic(at)yahoo(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond Chui 2001-06-06 13:55:30 Does PostgreSQL support EXISTS?
Previous Message Andrew Sullivan 2001-06-06 13:27:08 Re: Turning on/off the logfile