Re: Added columns to pg_stat_activity - Mailing list pgsql-patches

From Tom Lane
Subject Re: Added columns to pg_stat_activity
Date
Msg-id 2682.1115478293@sss.pgh.pa.us
Whole thread Raw
In response to Re: Added columns to pg_stat_activity  ("Magnus Hagander" <mha@sollentuna.net>)
List pgsql-patches
"Magnus Hagander" <mha@sollentuna.net> writes:
> I guess that's from not reading things carefully enough. I looked for
> where "backend pid" was transmitted, because I thought that would be a
> good place to put it. Which might bring up the question, why are things
> like the backend pid sent in msghdr and not in bestart?

I think the PID is used as the lookup key to associate messages from the
same backend.  You need some such key, though BackendId (sinval slot
number) is another workable candidate.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Added columns to pg_stat_activity
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Patch for database locale settings