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 wrote: > On Wed, Sep 29, 2010 at 2:45 PM, Magnus Hagander wrote: >> On Mon, Sep 27, 2010 at 14:34, Dave Page wrote: >>> On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane wrote: Robert Haas writes: > It's hard to say what the safest option is, I think.  

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 wrote: > On Mon, Sep 27, 2010 at 14:34, Dave Page wrote: >> On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane wrote: >>> Robert Haas writes: It's hard to say what the safest option is, I think.  There seem to be basically three proposals on the

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 wrote: > On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane wrote: >> Robert Haas 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

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 wrote: > On Thu, Sep 9, 2010 at 9:09 PM, Tom Lane wrote: >> Robert Haas 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

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 wrote: > Robert Haas 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 ign

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 Dunstan 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 (pgsql-hackers@postgresql.org) To ma

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

2010-09-16 Thread Tom Lane
Andrew Dunstan 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 your subscription: ht

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 Lane wrote: Magnus Hagander 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 thi

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 Lane wrote: Magnus Hagander 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

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 wrote: > Magnus Hagander 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 switc

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

2010-09-16 Thread Tom Lane
Bruce Momjian 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 via pgsql-hacke

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

2010-09-16 Thread Tom Lane
Magnus Hagander 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 next few hours, go

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 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 a C co

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 wrote: > On Wed, Sep 15, 2010 at 4:03 AM, Dave Page 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

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 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 gracefully under load i

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 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 reserved for

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

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 wrote: > Robert Haas wrote: >> On Thu, Sep 9, 2010 at 3:28 PM, Tom Lane wrote: >> > Robert Haas writes: >> >> We certainly now have MANY documented field complaints at least of the >> >> exit-128-on-Windows problem, if not the more general >> >> backe

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 wrote: > Magnus Hagander writes: >> On Thu, Sep 9, 2010 at 19:48, Tom Lane 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

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 wrote: > > Robert Haas 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 probl

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 wrote: > Robert Haas 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 ignor

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

2010-09-09 Thread Tom Lane
Robert Haas 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 Magnus's original so

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 wrote: > Robert Haas 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

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

2010-09-09 Thread Tom Lane
Robert Haas 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 a fix for the latt

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 wrote: > Robert Haas writes: >> On Thu, Sep 9, 2010 at 2:23 PM, Tom Lane 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 backpor

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

2010-09-09 Thread Tom Lane
Magnus Hagander writes: > On Thu, Sep 9, 2010 at 21:00, Tom Lane 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 into 8.2 and 8.3.  Personally >>

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 wrote: > Robert Haas writes: >> On Thu, Sep 9, 2010 at 2:23 PM, Tom Lane 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 backporti

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

2010-09-09 Thread Tom Lane
Robert Haas writes: > On Thu, Sep 9, 2010 at 2:23 PM, Tom Lane 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. [ raised eyebro

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 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 EnterpriseDB: http://www.e

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

2010-09-09 Thread Tom Lane
Magnus Hagander writes: > On Thu, Sep 9, 2010 at 19:48, Tom Lane 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, still doesn't log, which I think

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 wrote: > Magnus Hagander writes: >> On Tue, Aug 24, 2010 at 15:58, Tom Lane 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 e

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

2010-09-09 Thread Tom Lane
Magnus Hagander writes: > On Tue, Aug 24, 2010 at 15:58, Tom Lane 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 on Windows.  If for some >> reas

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 wrote: > Bruce Momjian 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() agains

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 t

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 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 > sessions noth

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 wrote: > > Dave Page wrote: > >> On Tue, Aug 31, 2010 at 4:27 PM, Bruce Momjian wrote: > >> > We have already found that exceeding desktop heap might cause a > >> > CreateProcess to return success but later fail with a return code

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 wrote: > Dave Page wrote: >> On Tue, Aug 31, 2010 at 4:27 PM, Bruce Momjian wrote: >> > We have already found that exceeding desktop heap might cause a >> > CreateProcess to return success but later fail with a return code of >> > 128, which causes a

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 m

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 wrote: > > Dave Page wrote: > >> On Tue, Aug 31, 2010 at 3:40 PM, Cristian Bittel wrote: > >> > To Dave's question, this behavior occurs on all Windows Server > >> > interactive > >> > sessions, no matter if Administrators or unde

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 wrote: > Dave Page wrote: >> On Tue, Aug 31, 2010 at 3:40 PM, Cristian Bittel wrote: >> > To Dave's question, this behavior occurs on all Windows Server interactive >> > sessions, no matter if Administrators or underpriviledge users, but is >> > rela

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 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 wind

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 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 > opened and connec

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 wrote: > On Thu, Aug 26, 2010 at 22:59, Cristian Bittel 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

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 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, just > monitori

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, a

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

2010-08-26 Thread Tom Lane
Robert Haas writes: > On Tue, Aug 24, 2010 at 9:58 AM, Tom Lane 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 on Windows.  If for some >> reason

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 wrote: > Bruce Momjian 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() agai

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 wrote: > > Robert Haas 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 enga

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 wrote: > Robert Haas 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"? Our code, as opp

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

2010-08-24 Thread Tom Lane
Robert Haas 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 create a PGPROC. Befor

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 wrote: > Bruce Momjian 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() agai

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 wrote: > On Tue, Aug 24, 2010 at 3:10 PM, Magnus Hagander wrote: >> On Tue, Aug 24, 2010 at 15:58, Tom Lane wrote: >>> Bruce Momjian writes: Robert Haas wrote: > Yeah, that seems very plausible, although exactly how to verify I don't > kn

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 wrote: > On Tue, Aug 24, 2010 at 15:58, Tom Lane wrote: >> Bruce Momjian 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

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 wrote: > Magnus Hagander wrote: >> On Tue, Aug 24, 2010 at 15:58, Tom Lane wrote: >> > Bruce Momjian writes: >> >> Robert Haas wrote: >> >>> Yeah, that seems very plausible, although exactly how to verify I don't >> >>> know. >> > >> >> And here is c

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 wrote: > > Bruce Momjian 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 som

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 wrote: > Bruce Momjian 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() agains

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

2010-08-24 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian 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

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

2010-08-24 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian 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

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

2010-08-24 Thread Tom Lane
Bruce Momjian 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 following

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 Robert Haas
On Tue, Aug 24, 2010 at 8:57 AM, Bruce Momjian wrote: > Robert Haas wrote: >> [moving to -hackers] >> >> On Thu, Aug 19, 2010 at 9:43 PM, Robert Haas wrote: >> > I suspect this is the same problem as bug #4897, and probably also the >> > same problem as this: >> > http://archives.postgresql.org/p

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 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

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 b

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 wrote: > Magnus Hagander writes: >> On Mon, Aug 23, 2010 at 17:09, Tom Lane 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 softwar

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

2010-08-23 Thread Tom Lane
Magnus Hagander writes: > On Mon, Aug 23, 2010 at 17:09, Tom Lane 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 maybe try some other >> one. >

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 wrote: > Robert Haas 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 s

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

2010-08-23 Thread Tom Lane
Robert Haas 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 anti-virus software.

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 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: > http://archives.postgresql