Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.8.8/8.7.5) with ESMTP id LAA04714 for ; Tue, 24 Mar 1998 11:13:13 -0500 (EST) Received: from insightdist.com (nobody@localhost) by u1.abs.net (8.8.5/8.8.5) with UUCP id KAA22341 for pgsql-hackers@postgresql.org; Tue, 24 Mar 1998 10:58:12 -0500 (EST) X-Authentication-Warning: u1.abs.net: nobody set sender to insightdist.com!darrenk using -f Received: by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA38844; Tue, 24 Mar 1998 10:55:10 -0500 Received: by ceodev (AIX 4.1/UCB 5.64/4.03) id AA74830; Tue, 24 Mar 1998 10:52:26 -0500 Date: Tue, 24 Mar 1998 10:52:26 -0500 From: darrenk@insightdist.com (Darren King) Message-Id: <9803241552.AA74830@ceodev> To: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] char types gone. Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Md5: 97GcTDs8cGzxexTYKkA4Rg== > > The nicest thing would be if contrib was changed to "modules", and > everything was compiled and installed in /usr/local/pgsql/modules/. > Then the user could install them by typing "INSMOD ORACLE" and then > /usr/local/pgsql/modules/oracle/insmod.sql would be executed and > install shared libraries and sql commands. "RMMOD ORACLE" would > do the opposite. Just like Linux modules. Vadim has something very similar to this in the contrib/spi Makefile. Would be a nice model to follow. I agree with your other comment about the impression given by "contrib." Contrib could stay the way it is, for independent contributions, then have a new directory, "modules", for contributions that are integrated into the postgres make. Tonight I will finalize my patch for the char types removal and then later in the week think more about this idea. > Perhaps it would even be possible to autoload modules if the modules > directories contains a file with commands/functions listed, which > would be searched automagically... > > This is the idea: > > Is it possible to register commands dynamically in the parser? CREATE COMMAND would be a new one. Talk about extensibility! :) darrenk