Re: \c connects as another user instead I want in psql - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: \c connects as another user instead I want in psql
Date
Msg-id 200105071953.f47JrPH25668@candle.pha.pa.us
Whole thread Raw
In response to Re: \c connects as another user instead I want in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> After thinking about that for awhile, I am inclined to change my
> previous position: we should not switch over to using the OIDs of
> pg_shadow rows as user identifiers.  usesysid should continue to
> exist.  Ditto for groups --- grosysid can't go away either.
> 
> I think the original motivation for wanting to eliminate these columns
> was that we need usesysid and grosysid to be distinct (can't use the
> same ID for both a user and a group).  Using OIDs as IDs would fix
> that, but it's overkill.  Wouldn't it be sufficient to use an
> installation-wide sequence object to assign new IDs for new users and
> groups?  We have no such animals at the present, but I see no reason
> why we couldn't make one.

One thing on the TODO list is to allow people to soecify OID's on
INSERT.  There is no reason we should disallow it, and it could come in
handy for fixing deleted rows.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Mike Mascari
Date:
Subject: RE: NOCREATETABLE patch (was: Re: Please, help!(about Postgres))
Next
From: Steve Wampler
Date:
Subject: Re: Re: File system performance and pg_xlog (More info)