| От | Tom Lane |
|---|---|
| Тема | Re: pg_get_viewdefs() indentation considered harmful |
| Дата | |
| Msg-id | 10992.1398797171@sss.pgh.pa.us обсуждение |
| Ответ на | pg_get_viewdefs() indentation considered harmful (Greg Stark <stark@mit.edu>) |
| Ответы |
Re: pg_get_viewdefs() indentation considered harmful
|
| Список | pgsql-hackers |
Greg Stark <stark@mit.edu> writes:
> I propose the attached patch. It wraps at 40 and also divides the
> indent level by half the std indent level. I tried a few different
> combinations and this is the one that produced the output I liked
> best.
I doubt you can do that (the half-size-step bit), at least not without
a much larger patch than this: there are assorted places that just
unconditionally append PRETTYINDENT_STD spaces, and would have to be
taught to do something different. OTOH those places might need to be
adjusted anyway.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера