Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group