Re: Anyone can create tables!

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Anyone can create tables!
Дата
Msg-id 007d01c0aa75$05ddee60$1001a8c0@archonet.com
обсуждение исходный текст
Ответ на Anyone can create tables!  (Dan McGrath <dmcgrath19@home.com>)
Ответы Re: Anyone can create tables!
Список pgsql-general
From: "Tom Lane" <tgl@sss.pgh.pa.us>

> Dan McGrath <dmcgrath19@home.com> writes:
> > Any user with access to a database on my system that isnt the
> > owner still has the ability to create tables (and possibly functions,
> > views etc.) with no aparent limits. Is this a design flaw or a bug or
> > perhaps just something you guys havent got around to fixing yet?
>
> There is no concept of database-level privileges in Postgres, other than
> the right to connect to a DB in the first place (which is recorded and
> enforced completely outside the database system itself).

I'm guessing there's a Good Reason (TM) why setting permissions on pg_class
et al don't seem to work.

I can see how it might screw temporary tables (and views?) etc. but I
couldn't seem to get perms to work at all the other day (I was playing).

Failing that, is Dan's talk of triggers (other branch of this thread)
plausible? Some disgusting hack to the client libraries to disable CREATE...
and ALTER TABLE?

- Richard Huxton


В списке pgsql-general по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: Money...
Следующее
От:
Дата:
Сообщение: Data type for storing images?