From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Amit Kapila
> Yes, I also share this opinion, the shm attach failures are due to
> randomization behavior, so sleep won't help much. So, I will change the
> patch to use 100 retries unless people have other opinions.
Perhaps I'm misunderstanding, but I thought it is not known yet whether the cause of the original problem is ASLR. I
remembersomeone referred to anti-virus software and something else. I guessed that the reason Noah suggested 1 - 5
secondsof retry is based on the expectation that the address space might be freed by the anti-virus software.
Regards
Takayuki Tsunakawa