Incorrect error message in InitializeSessionUserId - Mailing list pgsql-hackers

From Dmitriy Sarafannikov
Subject Incorrect error message in InitializeSessionUserId
Date
Msg-id 1456838489.216323919@f428.i.mail.ru
Whole thread Raw
Responses Re: Incorrect error message in InitializeSessionUserId  (Michael Paquier <michael.paquier@gmail.com>)
Re: Incorrect error message in InitializeSessionUserId  (Haribabu Kommi <kommi.haribabu@gmail.com>)
List pgsql-hackers
Hi all,

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?



Regards,
Dmitriy Sarafannikov
Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: POC: Cache data in GetSnapshotData()
Next
From: "Daniel Verite"
Date:
Subject: Re: pg_dump / copy bugs with "big lines" ?