Chris Browne cbbrowne at lists.slony.info
Wed Oct 21 05:55:06 PDT 2009
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv29360

Modified Files:
	slony1_funcs.sql 
Log Message:
UPGRADE FUNCTIONS failing because functions had their return types changed.
Added in "DROP FUNCTION IF EXISTS" (fine in 8.3+) in
src/backend/slony1_funcs.sql to rectify this.

Problem reported by Glyn Astill


Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.154
retrieving revision 1.155
diff -C2 -d -r1.154 -r1.155
*** slony1_funcs.sql	23 Sep 2009 16:15:02 -0000	1.154
--- slony1_funcs.sql	21 Oct 2009 12:55:04 -0000	1.155
***************
*** 3644,3647 ****
--- 3644,3649 ----
  --	Generate the DDL_SCRIPT event
  -- ----------------------------------------------------------------------
+ drop function if exists @NAMESPACE at .ddlScript_complete (int4, text, int4);  -- Needed because function signature has changed!
+ 
  create or replace function @NAMESPACE at .ddlScript_complete (int4, text, int4)
  returns bigint
***************
*** 5064,5067 ****
--- 5066,5070 ----
  --      Reset the relnames
  -- ----------------------------------------------------------------------
+ drop function if exists @NAMESPACE at .updateReloid (int4, int4);
  create or replace function @NAMESPACE at .updateReloid (int4, int4)
  returns bigint



More information about the Slony1-commit mailing list