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)
commit0b9d3d4dcd0561fbf674e09af1160f087eda535b
treef49951301ab51391d9c22e0a8ac68dabf9c87f8d
parentbdd6b62245fe7b5f25c4fec509b80ec930b6deff
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