pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Cc: PostgreSQL <Pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME
Date: Wed, 12 Oct 2011 11:40:32 -0400
Message-ID: <14185.1318434032@sss.pgh.pa.us> (raw)
In-Reply-To: <4E95B131.4010505@enterprisedb.com>
References: <20111012075314.GA25470@piware.de>
	<4E954895.6040701@kaltenbrunner.cc>
	<4E95523E.1010608@enterprisedb.com>
	<CABUevEyy8xW=qfUsWutr660+uWTF+akRPMm_dJ5u4n141bg+WA@mail.gmail.com>
	<CA+TgmoaNBwENDdj_+Gv17cQxzT89f0nQX0YkB-y1L4hkNL28_A@mail.gmail.com>
	<12966.1318428759@sss.pgh.pa.us>
	<4E95A4BE.8050501@dunslane.net>
	<CABUevEyjK-tXUGNQxeuQmU9OqbdUbEUZqLsgYZAfuHQTL+3mCQ@mail.gmail.com>
	<4E95AD97.8040800@enterprisedb.com>
	<13817.1318432821@sss.pgh.pa.us>
	<4E95B131.4010505@enterprisedb.com>

Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> On 12.10.2011 18:20, Tom Lane wrote:
>> 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.

The thing is that this will be the third time we've gone back to try to
make it more apparent that you should use CREATE EXTENSION, and I no
longer believe that mere documentation is really going to get the job
done.  Putting in a comment will only stop the bug reports from people
who bother to examine the script contents before filing a report, but
the kind of folks who don't read the release notes probably won't do
that either.  In fact, if we just put in a comment, I confidently
predict we'll be coming back to revisit this issue again in future.

The only thing the \echo approach will cost us is a few more lines of C
code in execute_extension_script(), and I think it's more than worth
that given the evident scope of the problem.

			regards, tom lane



view thread (25+ messages)  latest in thread

Message-ID: <14185.1318434032@sss.pgh.pa.us>
Permalink:  ../14185.1318434032@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14185.1318434032@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, heikki.linnakangas@enterprisedb.com, magnus@hagander.net, andrew@dunslane.net, robertmhaas@gmail.com, stefan@kaltenbrunner.cc, Pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME
  In-Reply-To: <14185.1318434032@sss.pgh.pa.us>
  References: <20111012075314.GA25470@piware.de> <4E954895.6040701@kaltenbrunner.cc> <4E95523E.1010608@enterprisedb.com> <CABUevEyy8xW=qfUsWutr660+uWTF+akRPMm_dJ5u4n141bg+WA@mail.gmail.com> <CA+TgmoaNBwENDdj_+Gv17cQxzT89f0nQX0YkB-y1L4hkNL28_A@mail.gmail.com> <12966.1318428759@sss.pgh.pa.us> <4E95A4BE.8050501@dunslane.net> <CABUevEyjK-tXUGNQxeuQmU9OqbdUbEUZqLsgYZAfuHQTL+3mCQ@mail.gmail.com> <4E95AD97.8040800@enterprisedb.com> <13817.1318432821@sss.pgh.pa.us> <4E95B131.4010505@enterprisedb.com> <14185.1318434032@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox