Re: Create table command fails with permission denied - Mailing list pgsql-admin

From Venkateswara Rao Bondada
Subject Re: Create table command fails with permission denied
Date
Msg-id 22640DE58AF78445BA8AB69FF76F07321AA2C21011@BLRKECMBX01.ad.infosys.com
Whole thread Raw
In response to Create table command fails with permission denied  (Venkateswara Rao Bondada <Venkateswara_B@infosys.com>)
List 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@postgresql.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

pgsql-admin by date:

Previous
From: Devrim GÜNDÜZ
Date:
Subject: Re: Slony-I Version with Postgres 8.4.0
Next
From: Brian Modra
Date:
Subject: Re: RAID for the DB filesystem