Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 50D06B5DBF9 for ; Wed, 12 Oct 2011 12:40:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 50944-08 for ; Wed, 12 Oct 2011 15:40:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id D3B82B5DBF7 for ; Wed, 12 Oct 2011 12:40:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9CFeWiI014186; Wed, 12 Oct 2011 11:40:32 -0400 (EDT) To: Heikki Linnakangas cc: Magnus Hagander , Andrew Dunstan , Robert Haas , Stefan Kaltenbrunner , PostgreSQL Subject: Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME In-reply-to: <4E95B131.4010505@enterprisedb.com> References: <20111012075314.GA25470@piware.de> <4E954895.6040701@kaltenbrunner.cc> <4E95523E.1010608@enterprisedb.com> <12966.1318428759@sss.pgh.pa.us> <4E95A4BE.8050501@dunslane.net> <4E95AD97.8040800@enterprisedb.com> <13817.1318432821@sss.pgh.pa.us> <4E95B131.4010505@enterprisedb.com> Comments: In-reply-to Heikki Linnakangas message dated "Wed, 12 Oct 2011 18:24:33 +0300" Date: Wed, 12 Oct 2011 11:40:32 -0400 Message-ID: <14185.1318434032@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/727 X-Sequence-Number: 196533 Heikki Linnakangas writes: > On 12.10.2011 18:20, Tom Lane wrote: >> Well, it can't be a comment, but what about a real psql command? >> See my suggestion of using \echo. > Frankly I think a comment is sufficient. We can make it more complicated > later if people are still confused. The thing is that this will be the third time we've gone back to try to make it more apparent that you should use CREATE EXTENSION, and I no longer believe that mere documentation is really going to get the job done. Putting in a comment will only stop the bug reports from people who bother to examine the script contents before filing a report, but the kind of folks who don't read the release notes probably won't do that either. In fact, if we just put in a comment, I confidently predict we'll be coming back to revisit this issue again in future. The only thing the \echo approach will cost us is a few more lines of C code in execute_extension_script(), and I think it's more than worth that given the evident scope of the problem. regards, tom lane