Re: procpid?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: procpid?
Date: 2011-06-09 16:29:03
Message-ID: BANLkTi=3nu-kbMu6+mErfnObOrD31n8Rag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jun 9, 2011 at 11:54 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> Can someone explain why pg_stat_activity has a column named procpid and
> not simply pid?  'pid' is that pg_locks uses, and 'procpid' is redundant
> (proc-process-id).  A mistake?

Well, we refer to the slots that backends use as "procs" (really
PGPROC), so I'm guessing that this was intended to mean "the pid
associated with the proc". It might not be the greatest name but I
can't see changing it now.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

  • procpid? at 2011-06-09 15:54:50 from Bruce Momjian

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2011-06-09 16:37:22 Re: [v9.1] sepgsql - userspace access vector cache
Previous Message Tom Lane 2011-06-09 16:28:28 Re: procpid?