Uninstalling adminpack
Uninstalling adminpack
От:
August Zajonc <augustz@augustz.com>
Дата:
It's always fun installing new software. Sometimes though you need to clean it out, for testing, because it's not needed etc. Attached is a stab at making the adminpacks somewhat easier to uninstall. The one question I had was on the LANGUAGE INTERNAL compatibility functions, which I'm assuming earlier versions of pgadmin used? Feedback welcome, testing probably neede. - August Index: Makefile =================================================================== --- Makefile (revision 5029) +++ Makefile (working copy) @@ -1,6 +1,7 @@ MODULE_big = admin81 PG_CPPFLAGS = -I$(libpq_srcdir) DATA_built = admin81.sql +DATA = admin81_uninstall.sql DOCS = README.admin81 OBJS = admin81.o Index: README.admin81 =================================================================== --- README.admin81 (revision 5029) +++ README.admin81 (working copy) @@ -36,6 +36,18 @@ On PostgreSQL 8.1 or above, you should use the admin81.sql script. +Uninstall +============ + +To uninstall use the helper script admin81_uninstall.sql: + +psql -U postgres postgres < admin81_uninstall.sql + +and then run: + +make [USE_PGXS=1] uninstall + + Objects implemented (superuser only) ==================================== /* *********************************************** * Cleanup administrative functions * for PostgreSQL 8.1.x * *********************************************** */ /* drop generic file access functions (genfile.c) */ DROP FUNCTION pg_catalog.pg_file_write(text, text, bool); DROP FUNCTION pg_catalog.pg_file_rename(text, text, text); DROP FUNCTION pg_catalog.pg_file_unlink(text); DROP FUNCTION pg_catalog.pg_file_rename(text, text); DROP FUNCTION pg_catalog.pg_logdir_ls(); /* Drop compatibility redefines */ DROP FUNCTION pg_catalog.pg_logfile_rotate(); DROP FUNCTION pg_catalog.pg_file_read(text, bigint, bigint); DROP FUNCTION pg_catalog.pg_file_length(text);
Re: Uninstalling adminpack
От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
> -----Original Message----- > From: pgadmin-hackers-owner@postgresql.org > [mailto:pgadmin-hackers-owner@postgresql.org] On Behalf Of > August Zajonc > Sent: 22 February 2006 14:35 > To: pgadmin-hackers@postgresql.org > Subject: [pgadmin-hackers] Uninstalling adminpack > > It's always fun installing new software. Sometimes though you need to > clean it out, for testing, because it's not needed etc. > > Attached is a stab at making the adminpacks somewhat easier > to uninstall. > > The one question I had was on the LANGUAGE INTERNAL compatibility > functions, which I'm assuming earlier versions of pgadmin used? Some of the original functions of the admin module were included in PostgreSQL 8.1, but were renamed because the community preferred different names. The compatibility definitions register the builtin functions with their original names to save pain in the main pgAdmin code. I'll review and apply the patch if OK as soon as I can - I'm out of the office until Monday in about 3 minutes though so I'm not sure when I'll be online until then... Thanks, Dave.