Re: Enhancement to psql command, feedback.

Поиск
Список
Период
Сортировка
От Steven Lembark
Тема Re: Enhancement to psql command, feedback.
Дата
Msg-id 20180510094640.29cd4d76@wrkhors.com
обсуждение исходный текст
Ответ на Re: Enhancement to psql command, feedback.  (Ron <ronljohnsonjr@gmail.com>)
Ответы Re: Enhancement to psql command, feedback.  (Francisco Olarte <folarte@peoplecall.com>)
Список pgsql-general
The whole point of "#!" working in shell is that the two-bytes
(a) mark the file as executable by a specific shell command and 
(b) are a shell comment.

One fairly simple fix that would make annotating here scripts
and the like simpler for shell(ish) execution would be simply
ignoring all text from "\n#" to the first "\n", which would 
allow the #! to function as a comment -- just as it does in
the shell. 

Another way to do it would be adding a '#' command to psql,
similar to '\', that accepts a one-line directive and ignores
it entirely. This would use the existing framework for detecting
the context of '\' as a command, just with a different magic
char.


-- 
Steven Lembark                                       1505 National Ave
Workhorse Computing                                 Rockford, IL 61103
lembark@wrkhors.com                                    +1 888 359 3508


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Is there any C functions that convert the entry to string?
Следующее
От: Steven Lembark
Дата:
Сообщение: Selecting strict, immutable text for a composite type.