Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B23E0B5DBCA for ; Wed, 12 Oct 2011 12:20:31 -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 73526-04 for ; Wed, 12 Oct 2011 15:20:25 +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 AA4FAB5DBC0 for ; Wed, 12 Oct 2011 12:20:24 -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 p9CFKLvV013818; Wed, 12 Oct 2011 11:20:21 -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: <4E95AD97.8040800@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> Comments: In-reply-to Heikki Linnakangas message dated "Wed, 12 Oct 2011 18:09:11 +0300" Date: Wed, 12 Oct 2011 11:20:21 -0400 Message-ID: <13817.1318432821@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/720 X-Sequence-Number: 196526 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. regards, tom lane