diff options
| author | Neil Conway <neilc@samurai.com> | 2006-03-13 18:04:58 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2006-03-13 18:04:58 +0000 |
| commit | 48fb696753e267447f99914c7968d0b4ffb5c5dc (patch) | |
| tree | f0dd377d6f11f5ed93dd9f89beda623de53d5cc6 /contrib/chkpass | |
| parent | 4a85bf3eaff0612087934e63cd4abd8b8fe67575 (diff) | |
| download | postgresql-48fb696753e267447f99914c7968d0b4ffb5c5dc.tar.gz | |
Fix a number of syntax errors in contrib modules' uninstall scripts.
Most of the changes add the mandatory USING clause to DROP OPERATOR
CLASS statements. DROP TYPE is now DROP TYPE CASCADE; without
CASCADE a DROP TYPE fails due to the circular dependency on the
type's I/O functions. The DROP FUNCTION statements for the I/O
functions have been removed, as DROP TYPE CASCADE removes them
automatically. Patch from Michael Fuhr.
Diffstat (limited to 'contrib/chkpass')
| -rw-r--r-- | contrib/chkpass/uninstall_chkpass.sql | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/contrib/chkpass/uninstall_chkpass.sql b/contrib/chkpass/uninstall_chkpass.sql index f1f8574bcc..4a4737a1d5 100644 --- a/contrib/chkpass/uninstall_chkpass.sql +++ b/contrib/chkpass/uninstall_chkpass.sql @@ -1,19 +1,10 @@ SET search_path = public; -DROP OPERATOR <>; ( - leftarg = chkpass, - rightarg = text, - negator = =, - procedure = ne -); +DROP OPERATOR <>(chkpass, text); -DROP OPERATOR =; ( - leftarg = chkpass, - rightarg = text, - commutator = =, --- negator = <>, - procedure = eq -); +DROP OPERATOR =(chkpass, text); + +DROP OPERATOR =(text, chkpass); DROP FUNCTION ne(chkpass, text); @@ -21,8 +12,4 @@ DROP FUNCTION eq(chkpass, text); DROP FUNCTION raw(chkpass); -DROP TYPE chkpass; - -DROP FUNCTION chkpass_out(chkpass); - -DROP FUNCTION chkpass_in(cstring); +DROP TYPE chkpass CASCADE; |
