Re: [HACKERS] [ADMIN] Cannot connect to the database (PG 7.3)

2003-01-28 Thread Shridhar Daithankar<[EMAIL PROTECTED]>
On Wednesday 29 Jan 2003 3:34 am, you wrote: > I wrote: > The reason this was done was to avoid the need to do catalog lookups > when restoring a prior setting during error recovery. That's still a > valid concern, so right offhand I don't see an easy fix. Any ideas? Document it as a bug and rec

Re: [HACKERS] [ADMIN] Cannot connect to the database (PG 7.3)

2003-01-28 Thread Tom Lane
>> After some looking, it appears the culprit is >> assign_session_authorization() in commands/variable.c, which is assuming >> that a numeric-looking parameter string should be taken as a numeric >> user sysid, rather than an actual user name. >> >> The reason this was done was to avoid the need

Re: [HACKERS] [ADMIN] Cannot connect to the database (PG 7.3)

2003-01-28 Thread Nigel J. Andrews
On Tue, 28 Jan 2003, Tom Lane wrote: > I wrote: > > Michiel Lange <[EMAIL PROTECTED]> writes: > >> It is, somehow, not possible to connect as a user which name is completely > >> numeric. > > > I muttered "nonsense!" to myself, but darned if you're not right: > > > regression=# create user "123

Re: [HACKERS] [ADMIN] Cannot connect to the database (PG 7.3)

2003-01-28 Thread Tom Lane
"Nigel J. Andrews" <[EMAIL PROTECTED]> writes: > How about throwing an error if an all digit user name is given to create > user as already alluded to? I do *not* want to do that; that's creating a user-visible restriction for the convenience of one very small part of the implementation. I think

Re: [HACKERS] [ADMIN] Cannot connect to the database (PG 7.3)

2003-01-28 Thread Tom Lane
I wrote: > Michiel Lange <[EMAIL PROTECTED]> writes: >> It is, somehow, not possible to connect as a user which name is completely >> numeric. > I muttered "nonsense!" to myself, but darned if you're not right: > regression=# create user "12345"; > CREATE USER > regression=# \q > $ psql -U 12345