Re: [HACKERS] Table permissions problem

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Table permissions problem
Date: 1998-08-13 14:32:50
Message-ID: 199808131432.KAA17007@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)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)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-08-13 15:05:17 Re: [HACKERS] Re: type coersion (was OR clause status)
Previous Message Thomas G. Lockhart 1998-08-13 14:30:18 Re: [HACKERS] Re: type coersion (was OR clause status)