Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-29 Thread Magnus Hagander
On Mon, Sep 27, 2010 at 14:34, Dave Page dp...@pgadmin.org wrote: On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: It's hard to say what the safest option is, I think.  There seem to be basically three proposals on the table: 1.

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-29 Thread Magnus Hagander
On Mon, Sep 27, 2010 at 14:34, Dave Page dp...@pgadmin.org wrote: On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: It's hard to say what the safest option is, I think.  There seem to be basically three proposals on the table: 1.

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-29 Thread Dave Page
On Wed, Sep 29, 2010 at 2:45 PM, Magnus Hagander mag...@hagander.net wrote: On Mon, Sep 27, 2010 at 14:34, Dave Page dp...@pgadmin.org wrote: On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: It's hard to say what the safest option is,

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-29 Thread Magnus Hagander
On Wed, Sep 29, 2010 at 15:54, Dave Page dp...@pgadmin.org wrote: On Wed, Sep 29, 2010 at 2:45 PM, Magnus Hagander mag...@hagander.net wrote: On Mon, Sep 27, 2010 at 14:34, Dave Page dp...@pgadmin.org wrote: On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-27 Thread Dave Page
On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: It's hard to say what the safest option is, I think.  There seem to be basically three proposals on the table: 1. Back-port the dead-man switch, and ignore exit 128. 2. Don't

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Magnus Hagander
On Wed, Sep 15, 2010 at 19:25, Robert Haas robertmh...@gmail.com wrote: On Wed, Sep 15, 2010 at 4:03 AM, Dave Page dp...@pgadmin.org wrote: Therefore I cannot give you specific areas where this will happen.  Of course when systems are low on resources or they are completely depleted (100% CPU)

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Bruce Momjian
Dave Page wrote: On Fri, Sep 10, 2010 at 1:45 PM, Bruce Momjian br...@momjian.us wrote: I am not sure how clear it is on Win32 that 128 is a special return code. I asked Microsoft platform support (roughly) that question. Here's the response: I assume we are going to summarize this in

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Tom Lane
Magnus Hagander mag...@hagander.net writes: So, it's been tested by at leasdt one EDB customer with success. Do we want to sneak this in before we release 9.0.0? I think we had consensus on applying the simple fix as far back as we have the deadman switch code. If you can get it done in the

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Tom Lane
Bruce Momjian br...@momjian.us writes: Can we assume all the mutexes will be cleaned up from a 128-exit? In the deadman-switch case I think we're safe enough. I'm not convinced at the moment that ignoring the error would be safe without that. regards, tom lane -- Sent

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Magnus Hagander
On Thu, Sep 16, 2010 at 19:30, Tom Lane t...@sss.pgh.pa.us wrote: Magnus Hagander mag...@hagander.net writes: So, it's been tested by at leasdt one EDB customer with success. Do we want to sneak this in before we release 9.0.0? I think we had consensus on applying the simple fix as far back

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Andrew Dunstan
On 09/16/2010 04:37 PM, Magnus Hagander wrote: On Thu, Sep 16, 2010 at 19:30, Tom Lanet...@sss.pgh.pa.us wrote: Magnus Hagandermag...@hagander.net writes: So, it's been tested by at leasdt one EDB customer with success. Do we want to sneak this in before we release 9.0.0? I think we had

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Andrew Dunstan
On 09/16/2010 05:29 PM, Andrew Dunstan wrote: On 09/16/2010 04:37 PM, Magnus Hagander wrote: On Thu, Sep 16, 2010 at 19:30, Tom Lanet...@sss.pgh.pa.us wrote: Magnus Hagandermag...@hagander.net writes: So, it's been tested by at leasdt one EDB customer with success. Do we want to sneak

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Tom Lane
Andrew Dunstan and...@dunslane.net writes: Looks like we're green on 9.0 for both MinGW and MSVC. Would you kick brown_bat too so we can check the cygwin case? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-16 Thread Andrew Dunstan
On 09/16/2010 08:50 PM, Tom Lane wrote: Andrew Dunstanand...@dunslane.net writes: Looks like we're green on 9.0 for both MinGW and MSVC. Would you kick brown_bat too so we can check the cygwin case? Done. Looks fine. cheers andrew -- Sent via pgsql-hackers mailing list

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-15 Thread Dave Page
On Fri, Sep 10, 2010 at 1:45 PM, Bruce Momjian br...@momjian.us wrote: I am not sure how clear it is on Win32 that 128 is a special return code. I asked Microsoft platform support (roughly) that question. Here's the response: = From NTSTATUS.H // // The success status codes 128 - 191 are

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-15 Thread Robert Haas
On Wed, Sep 15, 2010 at 4:03 AM, Dave Page dp...@pgadmin.org wrote: Therefore I cannot give you specific areas where this will happen.  Of course when systems are low on resources or they are completely depleted (100% CPU) things will stop working Of course. As we all know, degrading

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-10 Thread Magnus Hagander
On Thu, Sep 9, 2010 at 20:23, Tom Lane t...@sss.pgh.pa.us wrote: Magnus Hagander mag...@hagander.net writes: On Thu, Sep 9, 2010 at 19:48, Tom Lane t...@sss.pgh.pa.us wrote: On balance I think I'd suggest an #ifdef WIN32 in CleanupBackend that made it accept 128 as a normal exit case. Seems

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-10 Thread Magnus Hagander
On Fri, Sep 10, 2010 at 03:12, Bruce Momjian br...@momjian.us wrote: Robert Haas wrote: On Thu, Sep 9, 2010 at 3:28 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: We certainly now have MANY documented field complaints at least of the exit-128-on-Windows

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-10 Thread Bruce Momjian
Magnus Hagander wrote: I think we have clear enough evidence that 128 on Win32 means no-such-child and we can be sure the child never got started on that platform. We have evidence that 128 occurs in this case. I don't think we have evidence that there is no other case when this can

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Magnus Hagander
On Tue, Aug 24, 2010 at 15:58, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is confirmation from the Microsoft web site:       In some instances, calling

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Tom Lane
Magnus Hagander mag...@hagander.net writes: On Tue, Aug 24, 2010 at 15:58, Tom Lane t...@sss.pgh.pa.us wrote: Given the existence of the deadman switch mechanism (which I hadn't remembered when this thread started), I'm coming around to the idea that we could just treat exit(128) as nonfatal

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Magnus Hagander
On Thu, Sep 9, 2010 at 19:48, Tom Lane t...@sss.pgh.pa.us wrote: Magnus Hagander mag...@hagander.net writes: On Tue, Aug 24, 2010 at 15:58, Tom Lane t...@sss.pgh.pa.us wrote: Given the existence of the deadman switch mechanism (which I hadn't remembered when this thread started), I'm coming

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Tom Lane
Magnus Hagander mag...@hagander.net writes: On Thu, Sep 9, 2010 at 19:48, Tom Lane t...@sss.pgh.pa.us wrote: On balance I think I'd suggest an #ifdef WIN32 in CleanupBackend that made it accept 128 as a normal exit case. Seems reasonable. I'll whack it around for that - see attached. Hm,

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Robert Haas
On Thu, Sep 9, 2010 at 2:23 PM, Tom Lane t...@sss.pgh.pa.us wrote: We're not so worried about this case that we'd want to backport the deadman switch into 8.3 or 8.2 to have a fix there, are we? I think we should consider backporting the deadman switch to 8.3 and 8.2. -- Robert Haas

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: On Thu, Sep 9, 2010 at 2:23 PM, Tom Lane t...@sss.pgh.pa.us wrote: We're not so worried about this case that we'd want to backport the deadman switch into 8.3 or 8.2 to have a fix there, are we? I think we should consider backporting the deadman

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Magnus Hagander
On Thu, Sep 9, 2010 at 21:00, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: On Thu, Sep 9, 2010 at 2:23 PM, Tom Lane t...@sss.pgh.pa.us wrote: We're not so worried about this case that we'd want to backport the deadman switch into 8.3 or 8.2 to have a fix there,

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Tom Lane
Magnus Hagander mag...@hagander.net writes: On Thu, Sep 9, 2010 at 21:00, Tom Lane t...@sss.pgh.pa.us wrote: The thrust of my question was more along the lines of whether we should look for a different solution to the current problem, so that we would have something that could be back-ported

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Robert Haas
On Thu, Sep 9, 2010 at 3:00 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: On Thu, Sep 9, 2010 at 2:23 PM, Tom Lane t...@sss.pgh.pa.us wrote: We're not so worried about this case that we'd want to backport the deadman switch into 8.3 or 8.2 to have a fix

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: We certainly now have MANY documented field complaints at least of the exit-128-on-Windows problem, if not the more general backend-exits-without-going-through-the-normal-cleanup-path problem. Right, which is why I still don't care to risk back-porting

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Robert Haas
On Thu, Sep 9, 2010 at 3:28 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: We certainly now have MANY documented field complaints at least of the exit-128-on-Windows problem, if not the more general backend-exits-without-going-through-the-normal-cleanup-path

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: It's hard to say what the safest option is, I think. There seem to be basically three proposals on the table: 1. Back-port the dead-man switch, and ignore exit 128. 2. Don't back-port the dead-man switch, but ignore exit 128 anyway. 3. Revert to

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Magnus Hagander
On Thu, Sep 9, 2010 at 22:09, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: It's hard to say what the safest option is, I think.  There seem to be basically three proposals on the table: 1. Back-port the dead-man switch, and ignore exit 128. 2. Don't back-port

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-09 Thread Bruce Momjian
Robert Haas wrote: On Thu, Sep 9, 2010 at 3:28 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: We certainly now have MANY documented field complaints at least of the exit-128-on-Windows problem, if not the more general

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-01 Thread Dave Page
On Wed, Sep 1, 2010 at 3:49 PM, Cristian Bittel cbit...@gmail.com wrote: Maybe the issue, for the momtent, could be avoided modifying the shared heap for sessions on Windows. But I don't really have idea how much to increase or decrease the values. Try and error? But, inside the opened Windows

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-09-01 Thread Cristian Bittel
Maybe the issue, for the momtent, could be avoided modifying the shared heap for sessions on Windows. But I don't really have idea how much to increase or decrease the values. Try and error? But, inside the opened Windows sessions nothing alerts of a heap exaust so could be unpredictable how much

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-31 Thread Dave Page
On Sun, Aug 29, 2010 at 12:05 PM, Magnus Hagander mag...@hagander.net wrote: On Thu, Aug 26, 2010 at 22:59, Cristian Bittel cbit...@gmail.com wrote: I still believe this exit code 128 is related to pgAdmin opened during the clossing session on Remote Desktop. I have a Windows user login wich is

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-31 Thread Dave Page
On Tue, Aug 31, 2010 at 3:40 PM, Cristian Bittel cbit...@gmail.com wrote: To Dave's question, this behavior occurs on all Windows Server interactive sessions, no matter if Administrators or underpriviledge users, but is related to closing Windows interactive session while pgAdmin window is

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-31 Thread Bruce Momjian
Dave Page wrote: On Tue, Aug 31, 2010 at 3:40 PM, Cristian Bittel cbit...@gmail.com wrote: To Dave's question, this behavior occurs on all Windows Server interactive sessions, no matter if Administrators or underpriviledge users, but is related to closing Windows interactive session while

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-31 Thread Dave Page
On Tue, Aug 31, 2010 at 4:27 PM, Bruce Momjian br...@momjian.us wrote: Dave Page wrote: On Tue, Aug 31, 2010 at 3:40 PM, Cristian Bittel cbit...@gmail.com wrote: To Dave's question, this behavior occurs on all Windows Server interactive sessions, no matter if Administrators or

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-31 Thread Bruce Momjian
Dave Page wrote: On Tue, Aug 31, 2010 at 4:27 PM, Bruce Momjian br...@momjian.us wrote: Dave Page wrote: On Tue, Aug 31, 2010 at 3:40 PM, Cristian Bittel cbit...@gmail.com wrote: To Dave's question, this behavior occurs on all Windows Server interactive sessions, no matter if

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-31 Thread Cristian Bittel
I am the remote support guy for a web developed application (Apache+PHP+Pg. Postgres is isolated on a server, Apache runs on another server), and installed at our client, our client is the Administrator user on Windows Server, I just have a limited privileges Windows user for monitoring. I have my

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-31 Thread Dave Page
On Tue, Aug 31, 2010 at 4:35 PM, Bruce Momjian br...@momjian.us wrote: Dave Page wrote: On Tue, Aug 31, 2010 at 4:27 PM, Bruce Momjian br...@momjian.us wrote: We have already found that exceeding desktop heap might cause a CreateProcess to return success but later fail with a return code of

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-31 Thread Bruce Momjian
Dave Page wrote: On Tue, Aug 31, 2010 at 4:35 PM, Bruce Momjian br...@momjian.us wrote: Dave Page wrote: On Tue, Aug 31, 2010 at 4:27 PM, Bruce Momjian br...@momjian.us wrote: We have already found that exceeding desktop heap might cause a CreateProcess to return success but later fail

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-29 Thread Magnus Hagander
On Thu, Aug 26, 2010 at 22:59, Cristian Bittel cbit...@gmail.com wrote: I still believe this exit code 128 is related to pgAdmin opened during the clossing session on Remote Desktop. I have a Windows user login wich is not administrator just no privileged user, it cannot start/stop services,

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-26 Thread Robert Haas
On Tue, Aug 24, 2010 at 9:58 AM, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is confirmation from the Microsoft web site:       In some instances,

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-26 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: On Tue, Aug 24, 2010 at 9:58 AM, Tom Lane t...@sss.pgh.pa.us wrote: Given the existence of the deadman switch mechanism (which I hadn't remembered when this thread started), I'm coming around to the idea that we could just treat exit(128) as nonfatal

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-26 Thread Cristian Bittel
I still believe this exit code 128 is related to pgAdmin opened during the clossing session on Remote Desktop. I have a Windows user login wich is not administrator just no privileged user, it cannot start/stop services, just monitoring. With pgAdmin window opened inside my disconected session, as

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Bruce Momjian
Robert Haas wrote: [moving to -hackers] On Thu, Aug 19, 2010 at 9:43 PM, Robert Haas robertmh...@gmail.com wrote: I suspect this is the same problem as bug #4897, and probably also the same problem as this: http://archives.postgresql.org/pgsql-bugs/2009-08/msg00114.php and maybe also

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Robert Haas
On Tue, Aug 24, 2010 at 8:57 AM, Bruce Momjian br...@momjian.us wrote: Robert Haas wrote: [moving to -hackers] On Thu, Aug 19, 2010 at 9:43 PM, Robert Haas robertmh...@gmail.com wrote: I suspect this is the same problem as bug #4897, and probably also the same problem as this:

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Bruce Momjian
Robert Haas wrote: This isn't really a fix for the bug in the sense that the nicest thing of all would be to prevent the child from exiting abnormally in the first place. ?But it's far from clear that we can control that. This URL has some interesting details on our problem: ? ? ?

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Tom Lane
Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is confirmation from the Microsoft web site: In some instances, calling GetExitCode() against the failed process indicates the

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is confirmation from the Microsoft web site: In some instances, calling GetExitCode() against the failed

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is confirmation from the Microsoft web site: In some instances, calling GetExitCode() against the failed

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Magnus Hagander
On Tue, Aug 24, 2010 at 15:58, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is confirmation from the Microsoft web site:       In some instances, calling

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Bruce Momjian
Magnus Hagander wrote: On Tue, Aug 24, 2010 at 15:58, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is confirmation from the Microsoft web site: ?

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Magnus Hagander
On Tue, Aug 24, 2010 at 21:14, Bruce Momjian br...@momjian.us wrote: Magnus Hagander wrote: On Tue, Aug 24, 2010 at 15:58, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Robert Haas
On Tue, Aug 24, 2010 at 3:10 PM, Magnus Hagander mag...@hagander.net wrote: On Tue, Aug 24, 2010 at 15:58, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Magnus Hagander
On Tue, Aug 24, 2010 at 21:39, Robert Haas robertmh...@gmail.com wrote: On Tue, Aug 24, 2010 at 3:10 PM, Magnus Hagander mag...@hagander.net wrote: On Tue, Aug 24, 2010 at 15:58, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Robert Haas
On Tue, Aug 24, 2010 at 9:58 AM, Tom Lane t...@sss.pgh.pa.us wrote: Bruce Momjian br...@momjian.us writes: Robert Haas wrote: Yeah, that seems very plausible, although exactly how to verify I don't know. And here is confirmation from the Microsoft web site:       In some instances,

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: There is some amount of user code (I'm not sure preceisely how much) that runs after shared memory is mapped and before the deadman switch is engaged. Er ... what would you define as user code? The deadman switch is engaged at the point where we

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread Robert Haas
On Tue, Aug 24, 2010 at 5:11 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: There is some amount of user code (I'm not sure preceisely how much) that runs after shared memory is mapped and before the deadman switch is engaged. Er ... what would you define as

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-24 Thread David Fetter
On Tue, Aug 24, 2010 at 08:17:15PM -0400, Robert Haas wrote: On Tue, Aug 24, 2010 at 5:11 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: There is some amount of user code (I'm not sure preceisely how much) that runs after shared memory is mapped and before

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-23 Thread Robert Haas
[moving to -hackers] On Thu, Aug 19, 2010 at 9:43 PM, Robert Haas robertmh...@gmail.com wrote: I suspect this is the same problem as bug #4897, and probably also the same problem as this: http://archives.postgresql.org/pgsql-bugs/2009-08/msg00114.php and maybe also this and this:

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-23 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: After some discussion with Magnus, I think what is going on here is that the postmaster kicks off a new child process, which terminates before it actually starts running our code, either in OS-supplied code or some sort of filter like anti-spam or

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-23 Thread Magnus Hagander
On Mon, Aug 23, 2010 at 17:09, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: After some discussion with Magnus, I think what is going on here is that the postmaster kicks off a new child process, which terminates before it actually starts running our code, either

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-23 Thread Tom Lane
Magnus Hagander mag...@hagander.net writes: On Mon, Aug 23, 2010 at 17:09, Tom Lane t...@sss.pgh.pa.us wrote: I would be inclined to write this off as Windows randomness that's unfixable on our end.  We could recommend that people take a closer look at what AV software they have installed and

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-23 Thread Robert Haas
On Mon, Aug 23, 2010 at 11:37 AM, Tom Lane t...@sss.pgh.pa.us wrote: Magnus Hagander mag...@hagander.net writes: On Mon, Aug 23, 2010 at 17:09, Tom Lane t...@sss.pgh.pa.us wrote: I would be inclined to write this off as Windows randomness that's unfixable on our end.  We could recommend that

Re: [HACKERS] [BUGS] BUG #5305: Postgres service stops when closing Windows session

2010-08-23 Thread Cristian Bittel
From the users point of view, this could be a Windows or AV issue, but just stops Postgres service, does not affect or interfire on Windows stability or AV stability, instead it affect your product. So if you can improve the stability of the service (and data integrity at the most) it could be a