pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Venkateswara Rao Bondada <Venkateswara_B@infosys.com>
To: Rob Sargent <robjsargent@gmail.com>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: Create table command fails with permission denied
Date: Tue, 4 Aug 2009 13:41:29 +0530
Message-ID: <22640DE58AF78445BA8AB69FF76F07321AA2C2100A@BLRKECMBX01.ad.infosys.com> (raw)
In-Reply-To: <4A775E91.4090608@gmail.com>
References: <22640DE58AF78445BA8AB69FF76F07321AA2C20BAB@BLRKECMBX01.ad.infosys.com>
	<4A775E91.4090608@gmail.com>

Hi Rob,
I'm using postgres account (which is a superuser in the database) to create table. Table creation is working fine in other databases except in this. As postgres user, I granted CREATE, USAGE & ALL privileges to postgres account, still it didn't work.
Please find the snapshots below where it works fine and also where it doesn't work fine. And let me know what rights postgres account is missing to create tables in "cms" database.

==========================================
camd=# \c camd postgres
You are now connected to database "camd" as user "postgres".
camd=# create table test(id character varying(80));
CREATE TABLE
camd=# \c cms postgres
You are now connected to database "cms" as user "postgres".
cms=# create table test(id character varying(80));
ERROR:  could not create relation "test": Permission denied
cms=#
==========================================

Thanks,
Venkat


-----Original Message-----
From: Rob Sargent [mailto:robjsargent@gmail.com] 
Sent: Tuesday, August 04, 2009 3:33 AM
To: Venkateswara Rao Bondada
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Create table command fails with permission denied

Looks to me as though you are not the owner of the schema nor superuser 
nor in a role with permission to create tables in said schema. See the 
DBA if it's not you. If it is sign on as postgres (superuser) and grant 
yourself some access rights.



Venkateswara Rao Bondada wrote:
>
> Hi,
>
> I'm new to PostgreSQL, and currently facing an issue with PostgreSQL 
> 7.4 database. I'm getting the following error when tried to create a 
> table. Please let me know the steps (with queries) that I should take 
> care to resolve this issue.
>
> cms=# create table test(id character varying(80));
>
> ERROR: could not create relation "test": Permission denied
>
> Thanks in advance,
>
> Venkat
>



view thread (6+ messages)  latest in thread

Message-ID: <22640DE58AF78445BA8AB69FF76F07321AA2C2100A@BLRKECMBX01.ad.infosys.com>
Permalink:  ../22640DE58AF78445BA8AB69FF76F07321AA2C2100A@BLRKECMBX01.ad.infosys.com/
Also on:    postgresql.org/message-id/22640DE58AF78445BA8AB69FF76F07321AA2C2100A@BLRKECMBX01.ad.infosys.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: Venkateswara_B@infosys.com, robjsargent@gmail.com
  Subject: Re: Create table command fails with permission denied
  In-Reply-To: <22640DE58AF78445BA8AB69FF76F07321AA2C2100A@BLRKECMBX01.ad.infosys.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox