Re: User-defined print format for extension-defined types in psqloutput
В списке pgsql-general по дате отправления:
| От | Laurenz Albe |
|---|---|
| Тема | Re: User-defined print format for extension-defined types in psqloutput |
| Дата | |
| Msg-id | 1513331960.2504.22.camel@cybertec.at обсуждение |
| Ответ на | User-defined print format for extension-defined types in psql output (Peter Devoy <peter@3xe.co.uk>) |
| Ответы |
Re: User-defined print format for extension-defined types in psql output
|
| Список | pgsql-general |
Peter Devoy wrote: > To make inspecting PostGIS tables in psql easier I have written a > function which outputs PostGIS Geometry objects as a string of ASCII > art. > > Please does anyone know if there is there some way I can have my > function called automatically by psql instead of me writing it into > the query each time? E.g. a user defined \pset option or some sort of > extension API which gives me access to the print logic or > 'presentation layer' of psql. > > By 'automatically' I mean through association with the PostGIS geometry types. All I can think of is changing the output function of the PostGIS data types, but that would require a C function. Yours, Laurenz Albe
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера