Stephen Frost <sfrost@snowman.net> writes:
> Right, I had an idea about that but didn't really want to clutter the
> response to the general idea with it. At least on Linux (I don't know
> if it's the case elsewhere..), creating a POSIX shm ends up creating an
> actual 'file' in /dev/shm/, which you might be able to count the
> hard-links to in order to get an idea of the number of processes using
> it? It was just a thought that struck me, not sure if it's at all
> possible.
That's not gonna work on anything but Linux, AFAIK.
regards, tom lane