Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME
Date
Msg-id 13389.1318431017@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> *shrug* ok. Another thought I had was to have the file raise an error 
> and have that filtered out by the extension mechanism. But I'm not sure 
> if it's worth the trouble.

Hmm ...

\echo You should use CREATE EXTENSION foo to load this file!

and teach CREATE EXTENSION to drop any line beginning with \echo?
The latter part seems easy enough, but I'm not quite sure about the
wording or placement of the \echo command.  Putting it at the top
feels natural but the message might scroll offscreen due to errors...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: COUNT(*) and index-only scans
Next
From: Aidan Van Dyk
Date:
Subject: Re: COUNT(*) and index-only scans