Index: openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql,v
diff -u -r1.47 -r1.47.2.1
--- openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql	29 May 2013 09:41:47 -0000	1.47
+++ openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql	13 Sep 2014 09:46:19 -0000	1.47.2.1
@@ -986,7 +986,8 @@
 -- '9.1' means '9.1.0'
 -- '9.1.2' means '9.1.2'
 
-select define_function_args('cmp_pg_version','p__version');
+select define_function_args('cmp_pg_version','version');
+
 CREATE or REPLACE function cmp_pg_version(
     p__version varchar
 ) RETURNS integer AS $$
