OSDN Git Service

Send paramHandle to subprocesses as 64-bit on Win64
authorMagnus Hagander <magnus@hagander.net>
Tue, 16 Nov 2010 11:40:56 +0000 (12:40 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 16 Nov 2010 11:44:19 +0000 (12:44 +0100)
commitd3f62f232fc874efb22a06b2fd370eefa5f62790
treed548537b7c75baaaeeea2e3cecb83647304f4a83
parent821bb177227be9287f8fd50c2398c7bc5c3929e3
Send paramHandle to subprocesses as 64-bit on Win64

The handle to the shared memory segment containing startup
parameters was sent as 32-bit even on 64-bit systems. Since
HANDLEs appear to be allocated sequentially this shouldn't
be a problem until we reach 2^32 open handles in the postmaster,
but a 64-bit value should be sent across as 64-bit, and not
zero out the top 32 bits.

Noted by Tom Lane.
src/backend/postmaster/postmaster.c