pgsql: Fix a problem in my recent patch to initialize cancel_key for

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a problem in my recent patch to initialize cancel_key for
Date: 2007-08-04 03:15:49
Message-ID: 20070804031549.D6DC59FB3F7@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/postmaster:
postmaster.c (r1.538 -> r1.539)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.538&r2=1.539)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-08-04 19:29:25 pgsql: Fix crash caused by log_timezone patch if we attempt to emit any
Previous Message Tom Lane 2007-08-04 01:42:44 pgsql: Suppress time zone name (%Z) when logging timestamps in xlog.c