Re: Anyone can create tables!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dan McGrath <dmcgrath19(at)home(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Anyone can create tables!
Date: 2001-03-11 02:56:01
Message-ID: 21424.984279361@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dan McGrath <dmcgrath19(at)home(dot)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).

As near as I can tell, the SQL standard doesn't have any such concept
either, although it does have some notion of privileges associated with
schemas. We don't support schemas yet, but hope to soon.

The privilege system in Postgres does badly need to be overhauled and
brought up to SQL spec compliance, but I dunno when that will happen
exactly. It probably doesn't make sense to worry about it until we
have schema support, since otherwise there's no clear mapping of the SQL
model to Postgres...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jack 2001-03-11 03:10:56 psql win32 version
Previous Message Dan McGrath 2001-03-11 01:28:33 Anyone can create tables!