Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7EDD51337BD5 for ; Tue, 12 Apr 2011 19:52:40 -0300 (ADT) 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 92939-02 for ; Tue, 12 Apr 2011 22:52:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mail.postgresql.org (Postfix) with ESMTP id DD5E91337BA8 for ; Tue, 12 Apr 2011 19:52:32 -0300 (ADT) Received: by wya21 with SMTP id 21so41578wya.19 for ; Tue, 12 Apr 2011 15:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=eQPwVea9oPoJBvsZdEp62pf6pbp+5Mm5lpkavJh1ICY=; b=enZMlQVc0tgRGbN+yHuE2g+cs/jW33zuKnAJ8qATES8aDK7wvhGJeMeRRaHLTXJrYO I1ZLN+cCslyDiJ8fjF0AJgukTSSE/fljVYXuh7wjO7Qy3Vj+XCtapIqSlUV5VCxx5dCh u1/K62yHM+PQvr+tpNtZZS90XTFXSnBVjO6IQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Gg7B9VomI/BsbsqFcl6f54H0BAfqxZHl/b+wGHZzfYCXSFU+bfkadCHCCCIl5HCraH iM0kyF5oIZx6aScVoQSnjpCEM4kE3XUwBxyICFhyEfkZ1ZDCvCd3Ua9z1yuvQtn5nzXW J42fygvm5NMFwJTDNukz4xlv3LsZrQJGF/h0M= Received: by 10.216.47.19 with SMTP id s19mr4604515web.56.1302648752193; Tue, 12 Apr 2011 15:52:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.174.21 with HTTP; Tue, 12 Apr 2011 15:52:12 -0700 (PDT) From: Josh Kupershmidt Date: Tue, 12 Apr 2011 18:52:12 -0400 Message-ID: Subject: CREATE EXTENSION: documenting prereqs To: pgsql-docs Content-Type: multipart/mixed; boundary=0016367b6cc824423d04a0c08c4f X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201104/65 X-Sequence-Number: 6636 --0016367b6cc824423d04a0c08c4f Content-Type: text/plain; charset=ISO-8859-1 Hi all, I think users of 9.1 will be interested in quickly seeing what extensions are all about. Looking at the CREATE EXTENSION page[2], there's a brief example showing the command: | CREATE EXTENSION hstore; When I try this, I see something like: | ERROR: could not open extension control file "/Users/josh/runtime/share/postgresql/extension/hstore.control": No such file or directory Well, obviously I need to go into ./contrib/hstore/ and run make && make install (or install the appropriate -contrib package if I were using a packaged build of Postgres). I think it'd be nice to give users some hint about this prerequisite. Appendix F [1] discusses this, but there's currently no link from [2] to [1]. The way the CREATE EXTENSION page reads right now, I could forgive a new user thinking he shouldn't need to install any dependencies. A complementary approach would be to add an errhint to the "could not open extension control file..." error suggesting that the user install the contrib package himself, though I'm not sure offhand about the wording, especially since a user might be trying to install who-knows-what extension. A possible patch for the CREATE EXTENSION page is attached. Josh -- [1] http://developer.postgresql.org/pgdocs/postgres/contrib.html [2] http://developer.postgresql.org/pgdocs/postgres/sql-createextension.html --0016367b6cc824423d04a0c08c4f Content-Type: text/x-patch; charset=US-ASCII; name="create_extension.v4.patch" Content-Disposition: attachment; filename="create_extension.v4.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gmffblym1 ZGlmZiAtLWdpdCBhL2RvYy9zcmMvc2dtbC9yZWYvY3JlYXRlX2V4dGVuc2lvbi5zZ21sIGIvZG9j L3NyYy9zZ21sL3JlZi9jcmVhdGVfZXh0ZW5zaW9uLnNnbWwKaW5kZXggODE4YmMwY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