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

From darcy@druid.net (D'Arcy J.M. Cain)
Subject Re: [HACKERS] Table permissions problem
Date
Msg-id m0z7003-00006FC@druid.net
Whole thread Raw
In response to Re: [HACKERS] Table permissions problem  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Thus spake Bruce Momjian
> > > 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.

Sure.  I guess that had nothing to do with my problem then.  I guess it
also means that I can't share tables myself like I mentioned.  Oh well.

So could we special case these tables then and let the database owner
create views on the rest?

--
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.

pgsql-hackers by date:

Previous
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] tuple return from function
Next
From: "Jackson, DeJuan"
Date:
Subject: RE: [HACKERS] tuple return from function