pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Dmitry Tkach <dmitry@openratings.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Changing owner of function -- best method?
Date: Fri, 06 Jun 2003 10:42:28 -0400
Message-ID: <3EE0A854.1080605@openratings.com> (raw)
In-Reply-To: <200306050806.34172.josh@agliodbs.com>
References: <200306050806.34172.josh@agliodbs.com>
Josh Berkus wrote:
>Folks,
>
>I have several functions in a 7.2.4 database that I accidentally REPLACEd
>while logged in as the superuser, instead of the db owner. As a result, the
>db owner can no longer modify those functions -- they belong to the
>superuser.
>
>As this is a production database, I can't drop the functions and re-create
>them as a different user ... the interruption in service would not be
>acceptable. I was wondering whether there were any problems with either of
>the following methods:
>
>A) Updating the pg_proc table to change the function owner;
>B) Making the db_owner a superuser, replacing the functions, and then making
>the db_owner a non-superuser again.
>
>
I believe, either of two should work. I have done it many times in the
past...
Dima
view thread (3+ messages)
Message-ID: <3EE0A854.1080605@openratings.com> Permalink: ../3EE0A854.1080605@openratings.com/ Also on: postgresql.org/message-id/3EE0A854.1080605@openratings.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-sql@postgresql.org Cc: dmitry@openratings.com, josh@agliodbs.com Subject: Re: Changing owner of function -- best method? In-Reply-To: <3EE0A854.1080605@openratings.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox