diff --git a/contrib/pgrowlocks/Makefile b/contrib/pgrowlocks/Makefile
index 2bff839455c5d77f68ca725deee5dfca1f60269c..9cddd089b3dde50794f753d4c75df024f4eca850 100644
--- a/contrib/pgrowlocks/Makefile
+++ b/contrib/pgrowlocks/Makefile
@@ -2,7 +2,7 @@
 #
 # pgrowlocks Makefile
 #
-# $PostgreSQL: pgsql/contrib/pgrowlocks/Makefile,v 1.1 2006/04/23 01:12:58 ishii Exp $
+# $PostgreSQL: pgsql/contrib/pgrowlocks/Makefile,v 1.2 2006/09/30 18:08:32 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -12,6 +12,7 @@ MODULE_big	= pgrowlocks
 OBJS		= $(SRCS:.c=.o)
 DOCS		= README.pgrowlocks README.pgrowlocks.euc_jp
 DATA_built	= pgrowlocks.sql
+DATA		= uninstall_pgrowlocks.sql
 
 ifdef USE_PGXS
 PGXS = $(shell pg_config --pgxs)
diff --git a/contrib/pgrowlocks/uninstall_pgrowlocks.sql b/contrib/pgrowlocks/uninstall_pgrowlocks.sql
new file mode 100644
index 0000000000000000000000000000000000000000..9e37d11975540eca7c81e69a3576676ff784cafa
--- /dev/null
+++ b/contrib/pgrowlocks/uninstall_pgrowlocks.sql
@@ -0,0 +1,5 @@
+SET search_path = public;
+
+DROP FUNCTION pgrowlocks(text);
+
+DROP TYPE pgrowlocks_type;