aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-09-23 09:54:11 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-09-23 09:54:11 -0400
commit49a91b88e6c4afb840745c78942dd99ce125a6d6 (patch)
tree2bf1cf5f1336c5a275c11da0941af3ce6860c3e1 /src/tutorial/funcs.c
parent6fa51c79c7a645248a63205ce17af98ed404790d (diff)
downloadpostgresql-49a91b88e6c4afb840745c78942dd99ce125a6d6.tar.gz
postgresql-49a91b88e6c4afb840745c78942dd99ce125a6d6.zip
Avoid using PostmasterRandom() for DSM control segment ID.
Commits 470d886c3 et al intended to fix the problem that the postmaster selected the same "random" DSM control segment ID on every start. But using PostmasterRandom() for that destroys the intended property that the delay between random_start_time and random_stop_time will be unpredictable. (Said delay is probably already more predictable than we could wish, but that doesn't mean that reducing it by a couple orders of magnitude is OK.) Revert the previous patch and add a comment warning against misuse of PostmasterRandom. Fix the original problem by calling srandom() early in PostmasterMain, using a low-security seed that will later be overwritten by PostmasterRandom. Discussion: <20789.1474390434@sss.pgh.pa.us>
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions