Re: Reposnse from backend when wrong user/database request send - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Reposnse from backend when wrong user/database request send
Date
Msg-id 6833.1268415943@sss.pgh.pa.us
Whole thread Raw
In response to Reposnse from backend when wrong user/database request send  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: Reposnse from backend when wrong user/database request send
List pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
> It seems between 8.4 and CVS HEAD backend responses 'E' packet
> (error/fatal message) if a startup packet sent with wrong user and/or
> database. Before backend responses 'R' packet first followd by 'E'
> packet.

> Does anybody know why this change made?

It's a side effect of the changes made to get rid of the flat
authorization files.  Bad database is now reported before authentication
instead of after.  I wouldn't have thought bad user per se would be
reported before auth, though --- you sure about that one?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] trouble with to_char('L')
Next
From: Pavel Stehule
Date:
Subject: Re: Dyamic updates of NEW with pl/pgsql