summaryrefslogtreecommitdiff
path: root/contrib/chkpass
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2006-02-27 12:54:39 +0000
committerPeter Eisentraut <peter_e@gmx.net>2006-02-27 12:54:39 +0000
commitfe83b3ebc6b8d65fbb14100bdc476b7dbc32454c (patch)
tree33659142c317fc19ac4db5d70e8883e47a0c7821 /contrib/chkpass
parentd46fbef386b88d062bb0b00f17cbcf97f58ec821 (diff)
downloadpostgresql-fe83b3ebc6b8d65fbb14100bdc476b7dbc32454c.tar.gz
contrib uninstall scripts
by David Fetter
Diffstat (limited to 'contrib/chkpass')
-rw-r--r--contrib/chkpass/Makefile3
-rw-r--r--contrib/chkpass/uninstall_chkpass.sql28
2 files changed, 30 insertions, 1 deletions
diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile
index a9e8f2d91e..af7f492b3a 100644
--- a/contrib/chkpass/Makefile
+++ b/contrib/chkpass/Makefile
@@ -1,9 +1,10 @@
-# $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.7 2005/09/27 17:13:00 tgl Exp $
+# $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.8 2006/02/27 12:54:38 petere Exp $
MODULE_big = chkpass
OBJS = chkpass.o
SHLIB_LINK = $(filter -lcrypt, $(LIBS))
DATA_built = chkpass.sql
+DATA = uninstall_chkpass.sql
DOCS = README.chkpass
ifdef USE_PGXS
diff --git a/contrib/chkpass/uninstall_chkpass.sql b/contrib/chkpass/uninstall_chkpass.sql
new file mode 100644
index 0000000000..f1f8574bcc
--- /dev/null
+++ b/contrib/chkpass/uninstall_chkpass.sql
@@ -0,0 +1,28 @@
+SET search_path = public;
+
+DROP OPERATOR <>; (
+ leftarg = chkpass,
+ rightarg = text,
+ negator = =,
+ procedure = ne
+);
+
+DROP OPERATOR =; (
+ leftarg = chkpass,
+ rightarg = text,
+ commutator = =,
+-- negator = <>,
+ procedure = eq
+);
+
+DROP FUNCTION ne(chkpass, text);
+
+DROP FUNCTION eq(chkpass, text);
+
+DROP FUNCTION raw(chkpass);
+
+DROP TYPE chkpass;
+
+DROP FUNCTION chkpass_out(chkpass);
+
+DROP FUNCTION chkpass_in(cstring);