Re: Permission denied for create table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ptufenkji(at)usj(dot)edu(dot)lb
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Permission denied for create table
Date: 2008-11-24 13:17:56
Message-ID: 17008.1227532676@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Pascal Tufenkji" <ptufenkji(at)usj(dot)edu(dot)lb> writes:
> Creating a normal table works fine, but creating a table with subqueries is
> giving me "permission denied"

You need to explicitly grant select permission on the child tables not
just the parent.

> P.S. I'm working on PostgreSQL 7.3.2

As already noted, you really ought to update that ... among other
things, the documentation in recent versions explicitly covers the
point above ;-)

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tk421 2008-11-24 19:12:12 Sequence and nextval problem
Previous Message Richard Huxton 2008-11-24 09:24:13 Re: Permission denied for create table