Re: How to change the ownership of the table?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ramesh H R <ramesh(at)easi(dot)soft(dot)net>
Cc: sqllist <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How to change the ownership of the table?
Date: 2001-01-24 15:34:29
Message-ID: 12305.980350469@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ramesh H R <ramesh(at)easi(dot)soft(dot)net> writes:
> Please, any one guide me how to change the ownership of the table?

There's an ALTER TABLE command for this in current sources, but I think
it's new in 7.1. In older releases, you have to reach in by hand and
change the 'relowner' field of the table's pg_class row to match the
'usesysid' field of the pg_shadow entry for the desired new owner.

Working out the exact UPDATE command to use is left as an exercise
for the student ;-)

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-01-24 15:45:43 Re: i have a big trouble
Previous Message Blaise Carrupt 2001-01-24 13:38:31 Convert an interval in seconds