"Magnus Hagander" <mha(at)sollentuna(dot)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