Fix a problem in my recent patch to initialize cancel_key for autovac workers
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Aug 2007 03:15:49 +0000 (03:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Aug 2007 03:15:49 +0000 (03:15 +0000)
commitee6c579fe417d82fe17c749cebe3dd0578df90da
tree67b42451a9eaea950800b966e23b8e970f80ad86
parent47f5001efe0983eb2ce9d7cdde3f5179dea40ae4
Fix a problem in my recent patch to initialize cancel_key for autovac workers
as well as regular backends: if no regular backend launches before the autovac
launcher tries to start an autovac worker, the postmaster would get an Assert
fault due to calling PostmasterRandom before random_seed was initialized.
Cleanest solution seems to be to take the initialization of random_seed out
of ServerLoop and let PostmasterRandom do it for itself.
src/backend/postmaster/postmaster.c