C++-Language Function/Process List - Mailing list pgsql-general

From Kelly Burkhart
Subject C++-Language Function/Process List
Date
Msg-id 1116857580.32520.60.camel@krb06
Whole thread Raw
Responses Re: C++-Language Function/Process List
Re: C++-Language Function/Process List
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

Attachment

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to recover from : "Cache lookup failed for rela tion "
Next
From: Patrick.FICHE@AQSACOM.COM
Date:
Subject: Re: How to recover from : "Cache lookup failed for rela