Re: Updating pg_attribute - Permission denied

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Trewern, Ben" <Ben(dot)Trewern(at)mowlem(dot)com>, "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Updating pg_attribute - Permission denied
Date: 2000-10-23 22:15:07
Message-ID: 200010232215.SAA23154@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> "Trewern, Ben" <Ben(dot)Trewern(at)mowlem(dot)com> writes:
> > Looks like I have turned off usecatupd in pg_shadow. Doh! Was mucking
> > around with permissions some time ago but not had any trouble up till now.
> > Any ideas how to switch it back? Update pg_shadow SET usecatupd ..... gives
> > me Permission denied!!!
>
> Catch-22, ain't it? I think the only workaround at the moment is to
> create a new user with superuser privileges (who will have usecatupd
> true), become him, and fix your own usecatupd via UPDATE. Then you
> can discard the new superuser identity.
>
> A cleaner solution would be to have an ALTER USER variant that allows
> setting/clearing usecatupd. Item for TODO list ...

Added:

* Add ALTER USER command to change user db attributes

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Philip Hallstrom 2000-10-23 23:29:10 Good/bad experiences with DeZign app?
Previous Message Dominic J. Eidson 2000-10-23 22:00:48 Re: Great Bridge is hiring!