Re: manipuliation the pg_shadow table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bob Powell" <Bob(at)hotchkiss(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: manipuliation the pg_shadow table
Date: 2002-11-15 22:14:12
Message-ID: 2232.1037398452@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Bob Powell" <Bob(at)hotchkiss(dot)org> writes:
> Can anyone tell me if it is a problem to use the update command to change colunm values in the pg_shadow table?
> UPDATE pg_shadow SET usesuper = 't' where usename = 'bob'
> makes bob a superuser. Is this kind of thing OK? Thanks.

You can get away with it, but it's probably better to use ALTER USER.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-11-15 22:18:40 Re: Error in SELECT clause with UPPER function
Previous Message Manfred Koizar 2002-11-15 22:11:52 Re: RI_FKey_check: foreign key constraint blocks parallel