Re: Create table command fails with permission denied

From: Venkateswara Rao Bondada <Venkateswara_B(at)infosys(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Create table command fails with permission denied
Date: 2009-08-04 08:14:25
Message-ID: 22640DE58AF78445BA8AB69FF76F07321AA2C21011@BLRKECMBX01.ad.infosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

To add some more details to my question, 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 (cms). 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

From: Venkateswara Rao Bondada
Sent: Monday, August 03, 2009 6:26 PM
To: 'pgsql-admin(at)postgresql(dot)org'
Subject: Create table command fails with permission denied

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

Browse pgsql-admin by date

  From Date Subject
Next Message Brian Modra 2009-08-04 08:17:58 Re: RAID for the DB filesystem
Previous Message Brian Modra 2009-08-04 08:12:46 Re: RAID for the DB filesystem