Re: Updating the owner of a function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Mascari <mascarm(at)mascari(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Updating the owner of a function
Date: 2004-01-13 15:11:09
Message-ID: 11330.1074006669@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Mascari <mascarm(at)mascari(dot)com> writes:
> pg_dump: WARNING: owner of data type "plr_environ_type" appears to be invalid
> etc

> Becuase the original owner does not exist (uid 100) in pg_user. I was
> wondering if it would be safe to do:

> UPDATE pg_proc SET proowner = <appropriate owner id>
> WHERE proowner = 100;

It would be safer to create a new user with sysid 100, who would thereby
acquire ownership of the orphaned objects. You could possibly go around
and locate all the owner columns and do the above, but what about
permissions (ACL columns)?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Teran 2004-01-13 15:16:28 Re: Any real known bugs about wrong selects?
Previous Message Jeff Eckermann 2004-01-13 15:08:18 Re: Any real known bugs about wrong selects?