Re: Stored procedures and schema renames - Mailing list pgsql-general

From Florian Weimer
Subject Re: Stored procedures and schema renames
Date
Msg-id 53562986.7070707@redhat.com
Whole thread Raw
In response to Re: Stored procedures and schema renames  (Rob Sargent <robjsargent@gmail.com>)
List pgsql-general
On 04/10/2014 03:29 PM, Rob Sargent wrote:

> Code for db functions should be a repository. Easy edit and rerun

Well, not necessarily inside the transaction that renames the schema.

I've settled for this inside the transaction (running as a superuser):

    UPDATE pg_proc
       SET proconfig = '{"search_path=symboldb, public"}'
       WHERE pronamespace = (SELECT oid FROM pg_namespace
                             WHERE nspname = 'symboldb');


--
Florian Weimer / Red Hat Product Security Team


pgsql-general by date:

Previous
From: wd
Date:
Subject: Re: Make basebackup use low level API and rsync
Next
From: basti
Date:
Subject: could not rename temporary statistics file "/run/shm/pgstat.tmp" to "/run/shm/pgstat.stat": No such file or directory