Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9A8171337BE2; Mon, 14 Feb 2011 21:36:47 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 06413-05-2; Tue, 15 Feb 2011 01:36:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148108.authsmtp.net (outmail148108.authsmtp.net [62.13.148.108]) by mail.postgresql.org (Postfix) with ESMTP id F24A61337BCC; Mon, 14 Feb 2011 21:36:37 -0400 (AST) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt5.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p1F1aaEm040337; Tue, 15 Feb 2011 01:36:36 GMT Received: from [192.168.0.4] ([81.5.146.37]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p1F1aYod056018; Tue, 15 Feb 2011 01:36:34 GMT Subject: Re: [HACKERS] "Extension" versus "module" From: Simon Riggs To: Dimitri Fontaine Cc: Tom Lane , pgsql-hackers@postgreSQL.org, pgsql-docs@postgreSQL.org In-Reply-To: <87r5ba4z1x.fsf@2ndQuadrant.fr> References: <25160.1297664305@sss.pgh.pa.us> <87r5ba4z1x.fsf@2ndQuadrant.fr> Content-Type: text/plain; charset="UTF-8" Date: Tue, 15 Feb 2011 01:36:32 +0000 Message-ID: <1297733792.1747.18295.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Server-Quench: 060a329c-38a4-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksachtFaQBba1xT HGQLWlVEUFx7WmV/ aA4fZQRDZ1RPWwN0 U09WR1pVCwUmQR13 B093DU1ycgNGeXY+ YEBiWj5bWkQrdkR0 EVNXHTwCeGZhPWAC WEAKfh5UcAFIeBtF OFh3VyZDAzANdhEY NiQQEgoKCH0VBTRJ TwcWLFUUCw4VEyQn WgtKVzAoEVABSm9b X-Authentic-SMTP: 61633235383639.1015:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201102/54 X-Sequence-Number: 6402 On Mon, 2011-02-14 at 12:48 +0100, Dimitri Fontaine wrote: > Tom Lane writes: > > Appendix F (contrib.sgml and its subsidiary files) is pretty consistent > > about using "module" to refer to a contrib, uh, module. > > I'm now thinking in those terms: the module is the shared object library > that the backend needs to dlopen(). The extension is the SQL level > object that wraps all its components. I would say that some modules are extensions, but not all. A standalone executable might be part of a module, but would not be an extension. Remember also that not all modules out there on the net will have been updated either, so we must be able to discuss "extension-izing a module". (??) -- Simon Riggs http://www.2ndQuadrant.com/books/ PostgreSQL Development, 24x7 Support, Training and Services