Re: ProcSignalSlot vs. PGPROC

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Wanner <markus(at)bluegap(dot)ch>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ProcSignalSlot vs. PGPROC
Date: 2010-02-26 18:17:02
Message-ID: 1112.1267208222@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Markus Wanner <markus(at)bluegap(dot)ch> writes:
> do I understand correctly that a BackendId is just an index into the
> ProcSignalSlots array and not (necessarily) the same as the index into
> ProcArrayStruct's procs?

> If yes, could these be synchronized? Why is ProcSignalSlot not part of
> PGPROC at all? Both are shared memory structures per backend (plus
> NUM_AUXILIARY_PROCS). What am I missing?

It's easier to keep those modules separate. I believe also that there
are (or could be) processes that have entries in one array but not the
other.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gokulakannan Somasundaram 2010-02-26 18:30:51 Re: A thought on Index Organized Tables
Previous Message Tom Lane 2010-02-26 18:11:44 Re: Avoiding bad prepared-statement plans.