Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0CD64B5DC01 for ; Wed, 12 Oct 2011 04:58:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 87877-05 for ; Wed, 12 Oct 2011 07:58:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from cronos.madness.at (madness.at [217.196.146.217]) by mail.postgresql.org (Postfix) with ESMTP id B3930B5DC03 for ; Wed, 12 Oct 2011 04:58:30 -0300 (ADT) Received: from gatekeeper.kaltenbrunner.cc ([83.215.243.9] helo=[192.168.8.22]) by cronos.madness.at with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RDthq-0005Sp-RZ for pgsql-bugs@postgresql.org; Wed, 12 Oct 2011 09:58:29 +0200 Message-ID: <4E954895.6040701@kaltenbrunner.cc> Date: Wed, 12 Oct 2011 09:58:13 +0200 From: Stefan Kaltenbrunner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110818 Iceowl/1.0b1 Icedove/3.0.11 MIME-Version: 1.0 To: PostgreSQL Bugs Subject: Re: *.sql contrib files contain unresolvable MODULE_PATHNAME References: <20111012075314.GA25470@piware.de> In-Reply-To: <20111012075314.GA25470@piware.de> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 201110/97 X-Sequence-Number: 31367 On 10/12/2011 09:53 AM, Martin Pitt wrote: > Hello all, > > In https://launchpad.net/bugs/835502 it was reported that the 9.1.1 > contrib *.sql files contain the token "MODULE_PATHNAME", which is > unknown: > > psql test < /usr/share/postgresql/9.1/extension/intarray--1.0.sql > > This fails with a ton of errors about the file "MODULE_PATHNAME" not > existing. > > When I replace this with "$libdir/_int", it works: > > sed 's!MODULE_PATHNAME!$libdir/_int!g' /usr/share/postgresql/9.1/extension/intarray--1.0.sql | psql test > > Is that something I'm doing wrong in the packaging, or should the > contrib Makefiles be fixed to do this substitution? > > It doesn't only affect intarray, but pretty much all *.sql files. uh - the reason is that contrib is now packaged as extensions and that you are supposed to use "CREATE EXTENSION intarray;" on the SQL level instead of manually loading sql-scripts through psql. Stefan