forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe90fb4
committed
The attached patch improves pg_ctl's win32 service code to eliminate
some possible causes of the stale postmaster.pid problem that some usershave reported.- The service did not properly report that it acceptsSERVICE_CONTROL_SHUTDOWN events, thus it's possible the SCM simplykilled the postmaster on shutdown.- 'WaitHints' are now given to the SCM to prevent it timing out ifpg_ctl doesn't respond to a control event quickly enough.- During shutdown, the service checkpoint counter is incremented everyfive seconds for up to a minute to prevent the SCM timing out andassuming the service is not responding.Dave Page1 parentf7587ae commitfe90fb4
1 file changed
+18
-4
lines changedLines changed: 18 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
938 | 938 |
| |
939 | 939 |
| |
940 | 940 |
| |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
941 | 946 |
| |
942 | 947 |
| |
943 | 948 |
| |
944 | 949 |
| |
945 | 950 |
| |
946 | 951 |
| |
| 952 | + | |
947 | 953 |
| |
948 | 954 |
| |
949 | 955 |
| |
| |||
964 | 970 |
| |
965 | 971 |
| |
966 | 972 |
| |
967 |
| - | |
| 973 | + | |
968 | 974 |
| |
969 |
| - | |
| 975 | + | |
970 | 976 |
| |
971 | 977 |
| |
972 | 978 |
| |
| |||
1000 | 1006 |
| |
1001 | 1007 |
| |
1002 | 1008 |
| |
1003 |
| - | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1004 | 1018 |
| |
1005 | 1019 |
| |
1006 | 1020 |
| |
|
0 commit comments
Comments
(0)