| От | Tom Lane |
|---|---|
| Тема | Re: Tables(s) that feed pg_controldata |
| Дата | |
| Msg-id | 23175.1544452543@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Tables(s) that feed pg_controldata (Ian Barwick <ian.barwick@2ndquadrant.com>) |
| Список | pgsql-general |
Ian Barwick <ian.barwick@2ndquadrant.com> writes:
> On 12/10/2018 11:50 AM, Michael Paquier wrote:
>> Perhaps. Even with that, writing an extension for 9.2 would require
>> copy-pasting a lot of code from pg_controldata.c and taking as well the
>> code which has been introduced for the various control functions.
>> Dirty, still doable.
> I've got some code which does just that to read pg_control as far
> back as 9.3, and it is indeed not pretty ;).
If I had to do this pre-9.6, I'd write a function in an untrusted PL
that invoked pg_controldata and parsed its output. Ugly, but short
and easy to port across versions.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера