Uninstall scripts for contrib
Uninstall scripts for contrib
Folks, Please find attached a patch against CVS TIP which adds an uninstall script in SQL for each of the things where it would be appropriate. Contrib modules that already have an uninstall script are left as-is, as are ones which create stand-alone executeables, as I believe that we need to discuss what an uninstall script (if any) would look like for those. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!
Re: Uninstall scripts for contrib
От:
Neil Conway <neilc@samurai.com>
Дата:
On Sun, 2006-01-15 at 20:08 -0800, David Fetter wrote: > *** contrib/chkpass/Makefile 27 Sep 2005 17:13:00 -0000 1.7 > --- contrib/chkpass/Makefile 14 Jan 2006 23:16:03 -0000 > *************** > *** 1,9 **** > ! # $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.6 2004/08/20 > 20:13:02 momjian Exp $ > > MODULE_big = chkpass > OBJS = chkpass.o > SHLIB_LINK = $(filter -lcrypt, $(LIBS)) > DATA_built = chkpass.sql > DOCS = README.chkpass > > ifdef USE_PGXS > --- 1,10 ---- > ! # $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.7 2005/09/27 > 17:13:00 tgl Exp $ > > MODULE_big = chkpass > OBJS = chkpass.o > SHLIB_LINK = $(filter -lcrypt, $(LIBS)) > DATA_built = chkpass.sql > + DATA = uninstall.sql > DOCS = README.chkpass > > ifdef USE_PGXS The change to $PostgreSQL$ is bogus (perhaps due to the way you setup cvsup?), as are all the other $PostgreSQL$ changes in the patch. Also, the patch doesn't actually add any files called "uninstall.sql". -Neil
Re: Uninstall scripts for contrib
On Mon, Jan 16, 2006 at 12:13:11AM -0500, Neil Conway wrote: > On Sun, 2006-01-15 at 20:08 -0800, David Fetter wrote: > > > > ifdef USE_PGXS > > The change to $PostgreSQL$ is bogus (perhaps due to the way you > setup cvsup?), as are all the other $PostgreSQL$ changes in the > patch. Also, the patch doesn't actually add any files called > "uninstall.sql". Oops. My FM R'ing skills need some work. This patch includes the files. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!
Re: Uninstall scripts for contrib
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --------------------------------------------------------------------------- David Fetter wrote: > On Mon, Jan 16, 2006 at 12:13:11AM -0500, Neil Conway wrote: > > On Sun, 2006-01-15 at 20:08 -0800, David Fetter wrote: > > > > > > ifdef USE_PGXS > > > > The change to $PostgreSQL$ is bogus (perhaps due to the way you > > setup cvsup?), as are all the other $PostgreSQL$ changes in the > > patch. Also, the patch doesn't actually add any files called > > "uninstall.sql". > > Oops. My FM R'ing skills need some work. This patch includes the > files. > > Cheers, > D > -- > David Fetter david@fetter.org http://fetter.org/ > phone: +1 415 235 3778 > > Remember to vote! [ Attachment, skipping... ] > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Re: Uninstall scripts for contrib
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Am Montag, 16. Januar 2006 06:55 schrieb David Fetter: > Oops. My FM R'ing skills need some work. This patch includes the > files. This patch is rather useless because all the uninstall.sql files install on top of each other. I suggest naming them cube_uninstall.sql dblink_uninstall.sql etc. -- Peter Eisentraut http://developer.postgresql.org/~petere/
Re: Uninstall scripts for contrib
От:
David Fetter <david@fetter.org>
Дата:
On Thu, Jan 19, 2006 at 02:22:17PM +0100, Peter Eisentraut wrote: > Am Montag, 16. Januar 2006 06:55 schrieb David Fetter: > > Oops. My FM R'ing skills need some work. This patch includes the > > files. > > This patch is rather useless because all the uninstall.sql files > install on top of each other. I suggest naming them > cube_uninstall.sql dblink_uninstall.sql etc. It's paper bag time for me. How about a new patch which gives each contrib project its own directory and places them there? Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!
Re: Uninstall scripts for contrib
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
David Fetter wrote: > It's paper bag time for me. How about a new patch which gives each > contrib project its own directory and places them there? This would presumably imply that the installation scripts would be renamed to install.sql. On a green field this might make sense but as it is maybe it would break too much without much benefit? -- Peter Eisentraut http://developer.postgresql.org/~petere/
Re: Uninstall scripts for contrib
От:
David Fetter <david@fetter.org>
Дата:
On Thu, Jan 19, 2006 at 07:08:28PM +0100, Peter Eisentraut wrote: > David Fetter wrote: > > It's paper bag time for me. How about a new patch which gives > > each contrib project its own directory and places them there? > > This would presumably imply that the installation scripts would be > renamed to install.sql. On a green field this might make sense but > as it is maybe it would break too much without much benefit? You're right. I'll send a patch this evening my time that renames each to [module_name]_uninstall.sql. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!
Re: Uninstall scripts for contrib
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Peter Eisentraut writes: > David Fetter wrote: >> It's paper bag time for me. How about a new patch which gives each >> contrib project its own directory and places them there? > This would presumably imply that the installation scripts would be > renamed to install.sql. On a green field this might make sense but as > it is maybe it would break too much without much benefit? I agree, the current setup is not broken and doesn't need to be fixed. What *is* broken is the contrib documentation install layout, though, because of the modules that have additional documentation in sub-directories. Any thoughts what to do about that? regards, tom lane
Re: Uninstall scripts for contrib
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Removed at submitter request. --------------------------------------------------------------------------- David Fetter wrote: > On Mon, Jan 16, 2006 at 12:13:11AM -0500, Neil Conway wrote: > > On Sun, 2006-01-15 at 20:08 -0800, David Fetter wrote: > > > > > > ifdef USE_PGXS > > > > The change to $PostgreSQL$ is bogus (perhaps due to the way you > > setup cvsup?), as are all the other $PostgreSQL$ changes in the > > patch. Also, the patch doesn't actually add any files called > > "uninstall.sql". > > Oops. My FM R'ing skills need some work. This patch includes the > files. > > Cheers, > D > -- > David Fetter david@fetter.org http://fetter.org/ > phone: +1 415 235 3778 > > Remember to vote! [ Attachment, skipping... ] > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Re: Uninstall scripts for contrib
От:
"Jim C. Nasby" <jnasby@pervasive.com>
Дата:
On Thu, Jan 19, 2006 at 11:48:54AM -0800, David Fetter wrote: > On Thu, Jan 19, 2006 at 07:08:28PM +0100, Peter Eisentraut wrote: > > David Fetter wrote: > > > It's paper bag time for me. How about a new patch which gives > > > each contrib project its own directory and places them there? > > > > This would presumably imply that the installation scripts would be > > renamed to install.sql. On a green field this might make sense but > > as it is maybe it would break too much without much benefit? > > You're right. I'll send a patch this evening my time that renames > each to [module_name]_uninstall.sql. ISTM there's a pretty good usecase for going per-directory down the road. IIRC we already decided to do that for doc directories, and now that we'd have 2 scripts (_install and _uninstall) it seems a good idea for that as well. For backwards compatability maybe an install option that also installed the old-style _install.sql script would be adequate? Perhaps this could default to on for 8.2, off for 8.3 and gone for 8.4... -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
Re: Uninstall scripts for contrib
On Sun, Jan 15, 2006 at 09:55:39PM -0800, David Fetter wrote: > On Mon, Jan 16, 2006 at 12:13:11AM -0500, Neil Conway wrote: > > On Sun, 2006-01-15 at 20:08 -0800, David Fetter wrote: > > > > > > ifdef USE_PGXS > > > > The change to $PostgreSQL$ is bogus (perhaps due to the way you > > setup cvsup?), as are all the other $PostgreSQL$ changes in the > > patch. Also, the patch doesn't actually add any files called > > "uninstall.sql". > > Oops. My FM R'ing skills need some work. This patch includes the > files. Next: naming files so they don't clobber each other. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!
Re: Uninstall scripts for contrib
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
David Fetter wrote:
> On Sun, Jan 15, 2006 at 09:55:39PM -0800, David Fetter wrote:
> > On Mon, Jan 16, 2006 at 12:13:11AM -0500, Neil Conway wrote:
> > > On Sun, 2006-01-15 at 20:08 -0800, David Fetter wrote:
> > > >
> > > > ifdef USE_PGXS
> > >
> > > The change to $PostgreSQL$ is bogus (perhaps due to the way you
> > > setup cvsup?), as are all the other $PostgreSQL$ changes in the
> > > patch. Also, the patch doesn't actually add any files called
> > > "uninstall.sql".
> >
> > Oops. My FM R'ing skills need some work. This patch includes the
> > files.
>
> Next: naming files so they don't clobber each other.
I have updated your patch to remove the $PostgreSQL$ tags, but I still
do not see the uninstall files in the patch.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Index: contrib/btree_gist/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/btree_gist/Makefile,v
retrieving revision 1.8
diff -c -c -r1.8 Makefile
*** contrib/btree_gist/Makefile 27 Sep 2005 17:12:59 -0000 1.8
--- contrib/btree_gist/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 7,12 ****
--- 7,13 ----
btree_bytea.o btree_bit.o btree_numeric.o
DATA_built = btree_gist.sql
+ DATA = uninstall_btree_gist.sql
DOCS = README.btree_gist
REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz time timetz \
Index: contrib/chkpass/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/chkpass/Makefile,v
retrieving revision 1.7
diff -c -c -r1.7 Makefile
*** contrib/chkpass/Makefile 27 Sep 2005 17:13:00 -0000 1.7
--- contrib/chkpass/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 4,9 ****
--- 4,10 ----
OBJS = chkpass.o
SHLIB_LINK = $(filter -lcrypt, $(LIBS))
DATA_built = chkpass.sql
+ DATA = uninstall_chkpass.sql
DOCS = README.chkpass
ifdef USE_PGXS
Index: contrib/cube/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/cube/Makefile,v
retrieving revision 1.15
diff -c -c -r1.15 Makefile
*** contrib/cube/Makefile 18 Oct 2005 01:30:48 -0000 1.15
--- contrib/cube/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 4,9 ****
--- 4,10 ----
OBJS= cube.o cubeparse.o
DATA_built = cube.sql
+ DATA = uninstall_cube.sql
DOCS = README.cube
REGRESS = cube
Index: contrib/dblink/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/dblink/Makefile,v
retrieving revision 1.10
diff -c -c -r1.10 Makefile
*** contrib/dblink/Makefile 27 Sep 2005 17:13:01 -0000 1.10
--- contrib/dblink/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 6,11 ****
--- 6,12 ----
SHLIB_LINK = $(libpq)
DATA_built = dblink.sql
+ DATA = uninstall_dblink.sql
DOCS = README.dblink
REGRESS = dblink
Index: contrib/earthdistance/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/earthdistance/Makefile,v
retrieving revision 1.16
diff -c -c -r1.16 Makefile
*** contrib/earthdistance/Makefile 27 Sep 2005 17:13:02 -0000 1.16
--- contrib/earthdistance/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 2,7 ****
--- 2,8 ----
MODULES = earthdistance
DATA_built = earthdistance.sql
+ DATA = uninstall_earthdistance.sql
DOCS = README.earthdistance
REGRESS = earthdistance
Index: contrib/fuzzystrmatch/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/fuzzystrmatch/Makefile,v
retrieving revision 1.6
diff -c -c -r1.6 Makefile
*** contrib/fuzzystrmatch/Makefile 27 Sep 2005 17:13:03 -0000 1.6
--- contrib/fuzzystrmatch/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 4,9 ****
--- 4,10 ----
SRCS += fuzzystrmatch.c dmetaphone.c
OBJS = $(SRCS:.c=.o)
DATA_built = fuzzystrmatch.sql
+ DATA = uninstall_fuzzystrmatch.sql
DOCS = README.fuzzystrmatch README.soundex
ifdef USE_PGXS
Index: contrib/intagg/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/intagg/Makefile,v
retrieving revision 1.6
diff -c -c -r1.6 Makefile
*** contrib/intagg/Makefile 27 Sep 2005 17:13:03 -0000 1.6
--- contrib/intagg/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 6,11 ****
--- 6,12 ----
MODULES = int_aggregate
DATA_built = int_aggregate.sql
+ DATA = uninstall_int_aggregate.sql
DOCS = README.int_aggregate
ifdef USE_PGXS
Index: contrib/intarray/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/intarray/Makefile,v
retrieving revision 1.12
diff -c -c -r1.12 Makefile
*** contrib/intarray/Makefile 27 Sep 2005 17:13:04 -0000 1.12
--- contrib/intarray/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 3,8 ****
--- 3,9 ----
MODULE_big = _int
OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o
DATA_built = _int.sql
+ DATA = uninstall__int.sql
DOCS = README.intarray
REGRESS = _int
Index: contrib/isbn_issn/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/isbn_issn/Makefile,v
retrieving revision 1.14
diff -c -c -r1.14 Makefile
*** contrib/isbn_issn/Makefile 27 Sep 2005 17:13:04 -0000 1.14
--- contrib/isbn_issn/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 2,7 ****
--- 2,8 ----
MODULES = isbn_issn
DATA_built = isbn_issn.sql
+ DATA = uninstall_isbn_issn.sql
DOCS = README.isbn_issn
ifdef USE_PGXS
Index: contrib/ltree/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/ltree/Makefile,v
retrieving revision 1.4
diff -c -c -r1.4 Makefile
*** contrib/ltree/Makefile 27 Sep 2005 17:13:05 -0000 1.4
--- contrib/ltree/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 3,8 ****
--- 3,9 ----
OBJS = ltree_io.o ltree_op.o lquery_op.o _ltree_op.o crc32.o \
ltxtquery_io.o ltxtquery_op.o ltree_gist.o _ltree_gist.o
DATA_built = ltree.sql
+ DATA = uninstall_ltree.sql
DOCS = README.ltree
REGRESS = ltree
Index: contrib/pg_buffercache/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/pg_buffercache/Makefile,v
retrieving revision 1.2
diff -c -c -r1.2 Makefile
*** contrib/pg_buffercache/Makefile 27 Sep 2005 17:13:07 -0000 1.2
--- contrib/pg_buffercache/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 4,9 ****
--- 4,10 ----
OBJS = pg_buffercache_pages.o
DATA_built = pg_buffercache.sql
+ DATA = uninstall_pg_buffercache.sql
DOCS = README.pg_buffercache
ifdef USE_PGXS
Index: contrib/pg_trgm/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/pg_trgm/Makefile,v
retrieving revision 1.3
diff -c -c -r1.3 Makefile
*** contrib/pg_trgm/Makefile 27 Sep 2005 17:13:07 -0000 1.3
--- contrib/pg_trgm/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 5,10 ****
--- 5,11 ----
OBJS = trgm_op.o trgm_gist.o
DATA_built = pg_trgm.sql
+ DATA = uninstall_pg_trgm.sql
DOCS = README.pg_trgm
REGRESS = pg_trgm
Index: contrib/pgstattuple/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/pgstattuple/Makefile,v
retrieving revision 1.4
diff -c -c -r1.4 Makefile
*** contrib/pgstattuple/Makefile 27 Sep 2005 17:13:09 -0000 1.4
--- contrib/pgstattuple/Makefile 12 Feb 2006 04:36:55 -0000
***************
*** 12,17 ****
--- 12,18 ----
OBJS = $(SRCS:.c=.o)
DOCS = README.pgstattuple README.pgstattuple.euc_jp
DATA_built = pgstattuple.sql
+ DATA = uninstall_pgstattuple.sql
ifdef USE_PGXS
PGXS := $(shell pg_config --pgxs)
Index: contrib/seg/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/seg/Makefile,v
retrieving revision 1.14
diff -c -c -r1.14 Makefile
*** contrib/seg/Makefile 18 Oct 2005 01:30:48 -0000 1.14
--- contrib/seg/Makefile 12 Feb 2006 04:36:56 -0000
***************
*** 3,8 ****
--- 3,9 ----
MODULE_big = seg
OBJS = seg.o segparse.o
DATA_built = seg.sql
+ DATA = uninstall_seg.sql
DOCS = README.seg
REGRESS = seg
Index: contrib/tablefunc/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/tablefunc/Makefile,v
retrieving revision 1.5
diff -c -c -r1.5 Makefile
*** contrib/tablefunc/Makefile 27 Sep 2005 17:13:10 -0000 1.5
--- contrib/tablefunc/Makefile 12 Feb 2006 04:36:56 -0000
***************
*** 1,5 ****
--- 1,6 ----
MODULES = tablefunc
DATA_built = tablefunc.sql
+ DATA = uninstall_tablefunc.sql
DOCS = README.tablefunc
REGRESS = tablefunc
Index: contrib/userlock/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/userlock/Makefile,v
retrieving revision 1.19
diff -c -c -r1.19 Makefile
*** contrib/userlock/Makefile 27 Sep 2005 17:13:13 -0000 1.19
--- contrib/userlock/Makefile 12 Feb 2006 04:36:56 -0000
***************
*** 2,7 ****
--- 2,8 ----
MODULES = user_locks
DATA_built = user_locks.sql
+ DATA = uninstall_user_locks.sql
DOCS = README.user_locks
ifdef USE_PGXS
Index: contrib/xml2/Makefile
===================================================================
RCS file: /cvsroot/pgsql/contrib/xml2/Makefile,v
retrieving revision 1.6
diff -c -c -r1.6 Makefile
*** contrib/xml2/Makefile 27 Sep 2005 17:13:13 -0000 1.6
--- contrib/xml2/Makefile 12 Feb 2006 04:36:56 -0000
***************
*** 9,14 ****
--- 9,15 ----
SHLIB_LINK = -lxml2 -lxslt
DATA_built = pgxml.sql
+ DATA = uninstall_pgxml.sql
DOCS = README.xml2
override CFLAGS += $(shell xml2-config --cflags)
Re: Uninstall scripts for contrib
On Sat, Feb 11, 2006 at 11:37:49PM -0500, Bruce Momjian wrote: > David Fetter wrote: > > On Sun, Jan 15, 2006 at 09:55:39PM -0800, David Fetter wrote: > > > On Mon, Jan 16, 2006 at 12:13:11AM -0500, Neil Conway wrote: > > > > On Sun, 2006-01-15 at 20:08 -0800, David Fetter wrote: > > > > > > > > > > ifdef USE_PGXS > > > > > > > > The change to $PostgreSQL$ is bogus (perhaps due to the way you > > > > setup cvsup?), as are all the other $PostgreSQL$ changes in the > > > > patch. Also, the patch doesn't actually add any files called > > > > "uninstall.sql". > > > > > > Oops. My FM R'ing skills need some work. This patch includes the > > > files. > > > > Next: naming files so they don't clobber each other. > > I have updated your patch to remove the $PostgreSQL$ tags, but I still > do not see the uninstall files in the patch. This one should do it. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!
Re: Uninstall scripts for contrib
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
David Fetter wrote: > This one should do it. This patch fails to apply all over the place. Please fix it so we don't have to sort out the chunks manually. -- Peter Eisentraut http://developer.postgresql.org/~petere/
Re: Uninstall scripts for contrib
On Sat, Feb 18, 2006 at 07:08:15PM +0100, Peter Eisentraut wrote: > David Fetter wrote: > > This one should do it. > > This patch fails to apply all over the place. It applied just fine against the CVSup version. This one should apply against CVS TIP. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!