C++-Language Function/Process List

Поиск
Список
Период
Сортировка
От Kelly Burkhart
Тема C++-Language Function/Process List
Дата
Msg-id 1116857580.32520.60.camel@krb06
обсуждение исходный текст
Ответы Re: C++-Language Function/Process List  (Douglas McNaught <doug@mcnaught.org>)
Re: C++-Language Function/Process List  (Martijn van Oosterhout <kleptog@svana.org>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to recover from : "Cache lookup failed for rela tion "
Следующее
От: Patrick.FICHE@AQSACOM.COM
Дата:
Сообщение: Re: How to recover from : "Cache lookup failed for rela