Re: I'm OWNER of the db but I get `permission denied` when

From: Richard Huxton <dev(at)archonet(dot)com>
To: David Gagnon <dgagnon(at)siunik(dot)com>
Cc: Marco Colombo <pgsql(at)esiway(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: I'm OWNER of the db but I get `permission denied` when
Date: 2005-03-23 16:07:59
Message-ID: 4241945F.8010106@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Gagnon wrote:
> Hi all,
>
> I just created a new db wich userX is owner. I log via pgAdminIII with
> the same user but I can't update the pg_class.
>
> UPDATE pg_class SET reltriggers = 0 WHERE relname = 'ic'
>
> I get:ERROR: permission denied for relation pg_class
>
> I do that on my dev env. The only difference I saw beetween users is
> that my DEV user as priviledge to create database(But it shouln't
> matter...?!)

I'm guessing your dev user is a superuser, and your other user isn't.
Don't forget pg_class isn't in your database, it's shared by all.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Edson Vilhena de Carvalho 2005-03-23 16:11:17 backend process
Previous Message A. Mous 2005-03-23 16:07:47 Re: Simple query takes a long time on win2K