Re: Stored procedures and schema renames

From: Florian Weimer <fweimer(at)redhat(dot)com>
To: Rob Sargent <robjsargent(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Stored procedures and schema renames
Date: 2014-04-22 08:34:14
Message-ID: 53562986.7070707@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message basti 2014-04-22 09:36:35 could not rename temporary statistics file "/run/shm/pgstat.tmp" to "/run/shm/pgstat.stat": No such file or directory
Previous Message wd 2014-04-22 07:05:07 Re: Make basebackup use low level API and rsync