Re: postmaster.pid - Mailing list pgsql-hackers-win32

From Dave Page
Subject Re: postmaster.pid
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E41A7801@ratbert.vale-housing.co.uk
Whole thread Raw
Responses Re: postmaster.pid
List pgsql-hackers-win32
 


From: pgsql-hackers-win32-owner@postgresql.org [mailto:pgsql-hackers-win32-owner@postgresql.org] On Behalf Of Dave Page
Sent: 20 August 2004 20:57
To: Barry Lind; pgsql-hackers-win32@postgresql.org
Cc: Max Dunn
Subject: Re: [pgsql-hackers-win32] postmaster.pid

 
 
I've been thinking about this problem as well, and think you might just be on to something here. I'll look into this some more...
 
The correct way to do this is MoveFileEx("postmaster.pid", NULL, MOVEFILE_DELAY_UNTIL_REBOOT);. This /should/ write a registry entry to tell the system to delete the file at reboot. Unfortunately, it seems that this is an administrator-only operation which of course means it won't work when run under the postgresql service account.
 
Regards, Dave.

pgsql-hackers-win32 by date:

Previous
From: "Dave Page"
Date:
Subject: Re: postmaster.pid
Next
From: "Dave Page"
Date:
Subject: Re: Service startup delay