| От | Tom Lane |
|---|---|
| Тема | Re: psql: recall previous command? |
| Дата | |
| Msg-id | 6687.1109058705@sss.pgh.pa.us обсуждение |
| Ответ на | psql: recall previous command? (Neil Conway <neilc@samurai.com>) |
| Список | pgsql-hackers |
Neil Conway <neilc@samurai.com> writes:
> - when a multiple-line command is recalled, how should it be presented
> in the psql input buffer? Perhaps we could strip newlines from recalled
> command text, so that the recalled command would fit on a single line.
That fails on at least three cases: -- comments, newlines separating
parts of quoted literals (cf bizarre SQL spec requirement that adjacent
literals are merged only if separated by a newline), and newlines
embedded in quoted literals. You could possibly work around the first
two cases by doing nontrivial editing of the query string, but I see no
way around the last one.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера