*.sql contrib files contain unresolvable MODULE_PATHNAME

From: Martin Pitt <mpitt(at)debian(dot)org>
To: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: *.sql contrib files contain unresolvable MODULE_PATHNAME
Date: 2011-10-12 07:53:14
Message-ID: 20111012075314.GA25470@piware.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

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.

Thanks for any insight,

Martin Pitt

--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2011-10-12 07:58:13 Re: *.sql contrib files contain unresolvable MODULE_PATHNAME
Previous Message Bo Thorbjørn Jensen 2011-10-12 07:52:43 Re: BUG #6246: character encoding for 64 bit

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2011-10-12 07:53:52 Re: Online base backup from the hot-standby
Previous Message Peter Eisentraut 2011-10-12 07:50:13 Re: Overhead cost of Serializable Snapshot Isolation