pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Venkateswara Rao Bondada <Venkateswara_B@infosys.com>
Cc: 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, 04 Aug 2009 21:16:02 -0400
Message-ID: <25959.1249434962@sss.pgh.pa.us> (raw)
In-Reply-To: <22640DE58AF78445BA8AB69FF76F07321AA2C2100A@BLRKECMBX01.ad.infosys.com>
References: <22640DE58AF78445BA8AB69FF76F07321AA2C20BAB@BLRKECMBX01.ad.infosys.com>
	<4A775E91.4090608@gmail.com>
	<22640DE58AF78445BA8AB69FF76F07321AA2C2100A@BLRKECMBX01.ad.infosys.com>

Venkateswara Rao Bondada <Venkateswara_B@infosys.com> writes:
> 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

Actually, what that is complaining about is that the operating system
refused its attempt to create a filesystem file to hold the table.
It's got nothing to do with permissions inside the database --- there
is something wrong with the filesystem permissions of the data
directory.  Or maybe you started the postmaster as the wrong user
(not the one that owns the data directory).

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <25959.1249434962@sss.pgh.pa.us>
Permalink:  ../25959.1249434962@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25959.1249434962@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, Venkateswara_B@infosys.com, robjsargent@gmail.com
  Subject: Re: Create table command fails with permission denied
  In-Reply-To: <25959.1249434962@sss.pgh.pa.us>

* 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