pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-sql@postgreSQL.org
Subject: Change owner of function in 7.2.4?
Date: Mon, 2 Jun 2003 15:49:33 -0700
Message-ID: <200306021549.33228.josh@agliodbs.com> (raw)

Folks,

I have a 7.2.4 database where I accidentally replaced a bunch of functions 
while logged in as the superuser.   Now the normal applicaiton user can't 
modify them.  While I can fix them by dropping the functions as the superuser 
and re-creating them as the regular user, I can't see how to do this in a 
transaction to avoid disrupting the database users.

Are there any dangers I don't know about in either of the options below?
1) updating "proowner" in pg_proc
2) making the regular user a superuser temporarily, replacing the functions, 
and then switching them back.

Thoughts?

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




Message-ID: <200306021549.33228.josh@agliodbs.com>
Permalink:  ../200306021549.33228.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200306021549.33228.josh@agliodbs.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: josh@agliodbs.com
  Subject: Re: Change owner of function in 7.2.4?
  In-Reply-To: <200306021549.33228.josh@agliodbs.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