Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DA942B5DBDE for ; Wed, 12 Oct 2011 12:09:25 -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 23196-02 for ; Wed, 12 Oct 2011 15:09:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from exprod7og113.obsmtp.com (exprod7og113.obsmtp.com [64.18.2.179]) by mail.postgresql.org (Postfix) with ESMTP id 04EB2B5DBDA for ; Wed, 12 Oct 2011 12:09:18 -0300 (ADT) Received: from mail-ey0-f169.google.com ([209.85.215.169]) (using TLSv1) by exprod7ob113.postini.com ([64.18.6.12]) with SMTP; Wed, 12 Oct 2011 08:09:19 PDT Received: by eye4 with SMTP id 4so885573eye.28 for ; Wed, 12 Oct 2011 08:09:16 -0700 (PDT) Received: by 10.223.75.137 with SMTP id y9mr47252216faj.14.1318432154342; Wed, 12 Oct 2011 08:09:14 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi. [88.195.122.240]) by mx.google.com with ESMTPS id a1sm4160156fab.4.2011.10.12.08.09.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Oct 2011 08:09:13 -0700 (PDT) Message-ID: <4E95AD97.8040800@enterprisedb.com> Date: Wed, 12 Oct 2011 18:09:11 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: Magnus Hagander CC: Andrew Dunstan , Tom Lane , Robert Haas , Stefan Kaltenbrunner , PostgreSQL Subject: Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME References: <20111012075314.GA25470@piware.de> <4E954895.6040701@kaltenbrunner.cc> <4E95523E.1010608@enterprisedb.com> <12966.1318428759@sss.pgh.pa.us> <4E95A4BE.8050501@dunslane.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/716 X-Sequence-Number: 196522 On 12.10.2011 17:33, Magnus Hagander wrote: > How about adding something like > -- \\psql_hates_this > -- rest of comment > > and then at least have new versions of psql find that and stop > processing the file with a more useful error at that point? Or maybe > that's overengineering.. Overengineering IMHO. Besides, if a psql poison comment like that exists, then we'd have to be careful not to emit one elsewhere. Think pg_dump, if someone puts that comment in a function body... -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com