Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> writes:
> On Sat, Oct 17, 2015 at 12:07 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> Maybe we need to be using PostmasterRandom() rather than random() for
>> the control segment name.
> +1. Though I think it is better to investigate the actual cause before
> doing this.
BackendRun() deliberately prevents that from working. And it also sets
srandom() to a new value for each subprocess, so that AFAICS this idea
would be a net negative. If you are seeing duplicate key values getting
selected, the problem is elsewhere.
regards, tom lane