| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: [PATCH] Formatting patch for psql |
| Дата | |
| Msg-id | 20051124173307.GA29774@svana.org обсуждение исходный текст |
| Ответ на | Re: [PATCH] Formatting patch for psql (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-patches |
On Thu, Nov 24, 2005 at 03:45:12PM +0100, Peter Eisentraut wrote: > Martijn van Oosterhout wrote: > > Here is my patch to make psql handle multi-line output sanely. > > Instead of embedded newlines splattering your output across the > > screen, everything gets indented to the right column. > > Shouldn't you use PQmblen() to determine whether an encoding is > single-byte, rather than having an enumerated list? Probably. I went through psql to make sure there wasn't a function that did it, I didn't think of checking for undocumented libpq functions. Actually, I see there may be another there that would be nice: PQdsplen. Will look into it, thanks. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them.
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера