Adapting existing extensions to use CREATE EXTENSION

From: Roger Leigh <rleigh(at)codelibre(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Adapting existing extensions to use CREATE EXTENSION
Date: 2011-05-17 14:23:18
Message-ID: 20110517142318.GD6333@codelibre.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi folks,

I've been looking at converting my existing "debversion" datatype
extension to use the proper "CREATE EXTENSION" facility for 9.1,
while also being backward compatible with 8.4 and 9.0.

My initial work on the conversion is here:
http://people.debian.org/~rleigh/postgresql-debversion_1.0.5.orig.tar.gz

(this is based upon looking at how citext handles it plus the
documentation and information at pgxn.org)

Note that it uses autoconf/make rather than relying on PGXS.
Extension support is disabled with --disable-extension. When
disabled, it still installs a compatibility script in
contrib/ to allow existing scripts to function (but it just
wraps CREATE EXTENSION rather than doing everything by hand).

I was wondering if anyone could possibly look it over to see if
I'm missing anything, or doing anything stupid that I shouldn't
in the new order of things. I'll release it and make it available
on PGXN once I'm happy it's OK.

Many thanks,
Roger

--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Carlos Mennens 2011-05-17 15:14:37 Re: Remove Modifiers on Table
Previous Message Merlin Moncure 2011-05-17 13:30:45 Re: ordering of join using ON expression = any (array)