Uninstall scripts for contrib

Lists: pgsql-patches
From: David Fetter <david(at)fetter(dot)org>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Uninstall scripts for contrib
Date: 2006-01-16 04:08:57
Message-ID: 20060116040857.GC15718@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

Attachment Content-Type Size
contrib_uninstall.diff text/plain 14.1 KB

From: Neil Conway <neilc(at)samurai(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-16 05:13:11
Message-ID: 1137388391.9145.69.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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


From: David Fetter <david(at)fetter(dot)org>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-16 05:55:39
Message-ID: 20060116055539.GE15718@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

Attachment Content-Type Size
contrib_uninstall.diff text/plain 46.2 KB

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-18 22:36:14
Message-ID: 200601182236.k0IMaEp21008@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches


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(at)fetter(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: David Fetter <david(at)fetter(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-19 13:22:17
Message-ID: 200601191422.18870.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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/


From: David Fetter <david(at)fetter(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-19 15:56:45
Message-ID: 20060119155645.GA2186@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: David Fetter <david(at)fetter(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-19 18:08:28
Message-ID: 200601191908.28510.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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/


From: David Fetter <david(at)fetter(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-19 19:48:54
Message-ID: 20060119194854.GA4933@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: David Fetter <david(at)fetter(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-19 20:48:03
Message-ID: 8897.1137703683@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> 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


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-19 21:18:12
Message-ID: 200601192118.k0JLICq20776@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches


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(at)fetter(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-19 22:38:43
Message-ID: 20060119223843.GJ78403@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461


From: David Fetter <david(at)fetter(dot)org>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Uninstall scripts for contrib
Date: 2006-01-24 23:12:58
Message-ID: 20060124231258.GA21568@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

Attachment Content-Type Size
contrib_uninstall.diff text/plain 14.2 KB

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Uninstall scripts for contrib
Date: 2006-02-12 04:37:49
Message-ID: 200602120437.k1C4bnH24465@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 8.8 KB

From: David Fetter <david(at)fetter(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Uninstall scripts for contrib
Date: 2006-02-13 01:45:53
Message-ID: 20060213014553.GD23760@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

Attachment Content-Type Size
contrib_uninstall.diff text/plain 47.0 KB

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Cc: David Fetter <david(at)fetter(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Neil Conway <neilc(at)samurai(dot)com>
Subject: Re: Uninstall scripts for contrib
Date: 2006-02-18 18:08:15
Message-ID: 200602181908.15749.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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/


From: David Fetter <david(at)fetter(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Neil Conway <neilc(at)samurai(dot)com>
Subject: Re: Uninstall scripts for contrib
Date: 2006-02-22 07:31:14
Message-ID: 20060222073114.GB6279@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

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(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

Attachment Content-Type Size
contrib_uninstall.diff text/plain 39.5 KB

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: David Fetter <david(at)fetter(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Uninstall scripts for contrib
Date: 2006-02-27 12:55:04
Message-ID: 200602271355.04754.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Am Mittwoch, 22. Februar 2006 08:31 schrieb David Fetter:
> It applied just fine against the CVSup version. This one should apply
> against CVS TIP.

Done.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/