Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 42E006341C3 for ; Wed, 5 Aug 2009 14:21:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 39381-10 for ; Wed, 5 Aug 2009 17:21:07 +0000 (UTC) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 9CCE0632842 for ; Wed, 5 Aug 2009 14:21:09 -0300 (ADT) X-Greylist: delayed 00:07:10.301382 by SQLgrey-1.7.6 Received: from kecgate02.infosys.com (kecgate02.infosysconsulting.com [61.95.162.76]) by mx3.hub.org (Postfix) with ESMTP id B01F137B4E3 for ; Wed, 5 Aug 2009 14:13:20 -0300 (ADT) X-TM-IMSS-Message-ID: <04575894000604e4@kecgate02.infosys.com> Received: from blrkechub01.ad.infosys.com ([10.66.236.41]) by kecgate02.infosys.com ([61.95.162.76]) with ESMTP (TREND IMSS SMTP Service 7.0) id 04575894000604e4 ; Wed, 5 Aug 2009 22:33:42 +0530 Received: from BLRKECMBX01.ad.infosys.com ([10.66.236.21]) by blrkechub01.ad.infosys.com ([10.66.236.41]) with mapi; Wed, 5 Aug 2009 22:35:56 +0530 From: Venkateswara Rao Bondada To: Tom Lane CC: Rob Sargent , "pgsql-sql@postgresql.org" Date: Wed, 5 Aug 2009 22:35:54 +0530 Subject: Re: Create table command fails with permission denied Thread-Topic: [SQL] Create table command fails with permission denied Thread-Index: AcoVak+9AD8yCA/KQ6SlVOYzPiLc6QAhA9MA Message-ID: <22640DE58AF78445BA8AB69FF76F07321AA2D51550@BLRKECMBX01.ad.infosys.com> References: <22640DE58AF78445BA8AB69FF76F07321AA2C20BAB@BLRKECMBX01.ad.infosys.com> <4A775E91.4090608@gmail.com> <22640DE58AF78445BA8AB69FF76F07321AA2C2100A@BLRKECMBX01.ad.infosys.com> <25959.1249434962@sss.pgh.pa.us> In-Reply-To: <25959.1249434962@sss.pgh.pa.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/19 X-Sequence-Number: 32928 Hi Tom, Thanks a lot. What you suspected is correct. Permissions are modified on th= e underlying OS directory of this database. Once the permissions are rectif= ied, I'm able to create tables without any issues. Thanks to all for your support. Venkat -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Wednesday, August 05, 2009 6:46 AM To: Venkateswara Rao Bondada Cc: Rob Sargent; pgsql-sql@postgresql.org Subject: Re: [SQL] Create table command fails with permission denied=20 Venkateswara Rao Bondada writes: > camd=3D# \c cms postgres > You are now connected to database "cms" as user "postgres". > cms=3D# 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