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