Re: Incorrect error message in InitializeSessionUserId - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Incorrect error message in InitializeSessionUserId
Date
Msg-id CAB7nPqRROEv9cj8iDxrBcx1SnzcgSKYZmRvgxYF+mmT4M1E71w@mail.gmail.com
Whole thread Raw
In response to Incorrect error message in InitializeSessionUserId  (Dmitriy Sarafannikov <d.sarafannikov@bk.ru>)
List pgsql-hackers
On Tue, Mar 1, 2016 at 10:21 PM, Dmitriy Sarafannikov
<d.sarafannikov@bk.ru> wrote:
> I have found incorrect error message in InitializeSessionUserId function
> if you try to connect to database by role Oid (for example
> BackgroundWorkerInitializeConnectionByOid).
> If role have no permissions to login, you will see error message like this:
> FATAL:  role "(null)" is not permitted to log in
>
> I changed few lines of code and fixed this.
> Patch is attached.
> I want to add this patch to commitfest.
> Any objections?

Not really. That looks like an oversight to me.
-- 
Michael



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: 2016-03 Commitfest Manager
Next
From: David Fetter
Date:
Subject: Re: 2016-03 Commitfest Manager