Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME
Дата
Msg-id 13389.1318431017@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: COUNT(*) and index-only scans
Следующее
От: Aidan Van Dyk
Дата:
Сообщение: Re: COUNT(*) and index-only scans