Re: [HACKERS] Table permissions problem - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Table permissions problem
Date
Msg-id 199808131432.KAA17007@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Table permissions problem  (darcy@druid.net (D'Arcy J.M. Cain))
Responses Re: [HACKERS] Table permissions problem  (darcy@druid.net (D'Arcy J.M. Cain))
List pgsql-hackers
> Thus spake Bruce Momjian
> > > Hmm.  That makes it difficult.  I would like to build databases from
> > > scripts.  I guess I can build them as the super user.
> > >
> > > Shouldn't the database owner have more privs then someone using the
> > > database?  Is that what that TODO item is actually suggesting?
> >
> > Remember some tables are shared with all databases.  Makes things more
> > difficult.
>
> I didn't realize that.  I assume that you don't mean some system tables
> as they could, I am sure, be special cased.  Can you expand?  I once
> had a situation where a table in one database was trashed by being filled
> with data from another table of the same name in another database.  Was
> I bitten by this feature somehow?  At the same time I like the idea of
> sharing tables.  It would be perfect for things like time zone and
> province/state tables.

See pgsql/data/ and you will see the tables that are shared:

    pg_database
    pg_group
    pg_shadow
    pg_variable

Makes sense they have to be shared.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Re: type coersion (was OR clause status)
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: type coersion (was OR clause status)