Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8ADC0B5DC2A for ; Wed, 12 Oct 2011 12:32:51 -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 39782-05-6 for ; Wed, 12 Oct 2011 15:32:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from exprod7og115.obsmtp.com (exprod7og115.obsmtp.com [64.18.2.217]) by mail.postgresql.org (Postfix) with ESMTP id 1D3BAB5DC02 for ; Wed, 12 Oct 2011 12:32:21 -0300 (ADT) Received: from mail-gx0-f178.google.com ([209.85.161.178]) (using TLSv1) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP; Wed, 12 Oct 2011 08:32:22 PDT Received: by mail-gx0-f178.google.com with SMTP id l1so802056ggn.9 for ; Wed, 12 Oct 2011 08:32:21 -0700 (PDT) Received: by 10.223.4.132 with SMTP id 4mr47228306far.12.1318433077033; Wed, 12 Oct 2011 08:24:37 -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 w14sm4254016fae.13.2011.10.12.08.24.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Oct 2011 08:24:36 -0700 (PDT) Message-ID: <4E95B131.4010505@enterprisedb.com> Date: Wed, 12 Oct 2011 18:24:33 +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: Tom Lane CC: Magnus Hagander , Andrew Dunstan , 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> <4E95AD97.8040800@enterprisedb.com> <13817.1318432821@sss.pgh.pa.us> In-Reply-To: <13817.1318432821@sss.pgh.pa.us> 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/726 X-Sequence-Number: 196532 On 12.10.2011 18:20, Tom Lane wrote: > Heikki Linnakangas writes: >> 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... > > 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. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com