Thread: Fwd: Postgres.exe crashes and tears down all apps, recovers and is running again

Hi

Have a bunch of processes connected to Postgres (10.0) on windows server 
2016. The software was running without problems for at least a year.

Each process is doing different actions.

Every about 5-10 days a postgres.exe running for one of the application 
processes crashes, tears down everything. Database recorves and then it 
works again as normal.

The wierd thing is it's not always the same application process which 
starts the whole sequence.


One success situation is as follows

2021-07-12 07:33:52.701 CEST [5744] LOG:  duration: 0.020 ms statement: 
COMMIT
2021-07-12 07:33:52.707 CEST [5744] LOG:  duration: 0.023 ms statement: 
DISCARD ALL
2021-07-12 07:33:52.707 CEST [5744] LOG:  duration: 0.005 ms statement: 
BEGIN
2021-07-12 07:33:52.707 CEST [5744] LOG:  duration: 0.011 ms statement: 
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
.....

The same potgres.exe crashes afterwards

2021-07-12 07:33:55.321 CEST [5744] LOG:  duration: 0.032 ms statement: 
COMMIT
2021-07-12 07:34:32.660 CEST [3972] LOG:  server process (PID 5744) was 
terminated by exception 0xFFFFFFFF


The COMMIT was the last successfull action in the database.  I verified 
the existence of the data in the database.
The new job at 07:34 caused the crash immediately.

Since I dont see DISCARD ALL/BEGIN/SET TRANSACTION my interpretation is  
this:
The possible (if any) corrupted shared memory is caused by an other 
postgres.exe process.
Therfore checked all actions before these crashes. But also her it's 
always a different one.

BTW: There is no virus scanner on the postgres folder and it's a 
productive system, I cant just update.

So the problem leaves me puzzled.
Would be great if somebody has some ideas how to continue investigation.


Thanks

Beat





On Thu, Jul 22, 2021 at 11:52:55AM +0200, Beat Hoedl wrote:
> 
> Have a bunch of processes connected to Postgres (10.0) [...]
> 
> So the problem leaves me puzzled.
> Would be great if somebody has some ideas how to continue investigation.

The first thing you need to do is to update to 10.17 and get the almost 4 years
of bug fixes that have been released since.



Beat Hoedl schrieb am 22.07.2021 um 11:52:

> BTW: There is no virus scanner on the postgres folder and it's a productive system, I cant just update.


Quote from the Postgres homepage https://www.postgresql.org/support/versioning/

> For minor releases, the community considers not upgrading to be riskier than upgrading.




On 7/22/21 4:52 AM, Beat Hoedl wrote:
[snip]
BTW: There is no virus scanner on the postgres folder and it's a productive system, I cant just update.


There's always a maintenance window, even if it's just once a year on Christmas.  Or are you saying that Windows isn't being patched either?

--
Angular momentum makes the world go 'round.
On Thu, Jul 22, 2021 at 09:21:56AM -0500, Ron wrote:
> On 7/22/21 4:52 AM, Beat Hoedl wrote:
> [snip]
> > BTW: There is no virus scanner on the postgres folder and it's a
> > productive system, I cant just update.
> > 
> 
> There's *always* a maintenance window, even if it's just once a year on
> Christmas.  Or are you saying that Windows isn't being patched either?

Especially since the OP reported that they experience a crash every 5 to 10
days.