pgsql: Fix a problem in my recent patch to initialize cancel_key for - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix a problem in my recent patch to initialize cancel_key for
Date
Msg-id 20070804031549.D6DC59FB3F7@postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Suppress time zone name (%Z) when logging timestamps in xlog.c
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix crash caused by log_timezone patch if we attempt to emit any