| От | Kelly Burkhart |
|---|---|
| Тема | C++-Language Function/Process List |
| Дата | |
| Msg-id | 1116857580.32520.60.camel@krb06 обсуждение исходный текст |
| Ответы |
Re: C++-Language Function/Process List
Re: C++-Language Function/Process List |
| Список | pgsql-general |
I've written a simple function to return a list of processes running on the server. The function uses the Linux /proc filesystem, so is not portable. Usage is like this: tradebot01@ [local] => select * from tb_ps() where command like '%post%'; pid | username | command -------+----------+------------------------------------------------ 3597 | root | /usr/lib/postfix/master 23671 | postgres | /usr/bin/postmaster -i -D /var/lib/pgsql/data 23677 | postgres | postgres: stats buffer process 23678 | postgres | postgres: stats collector process 23738 | postgres | postgres: tradebot tradebot01 [local]: SELECT (5 rows) I used C++ and noticed that some Postgres headers contain C++ keywords. Is there any interest among PG developers in making the C-language interface C++ clean? Or, is there hostility to this idea? -K
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера