Sometimes the output to the stdout in Windows disappears

From: Victor Spirin <v(dot)spirin(at)postgrespro(dot)ru>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Sometimes the output to the stdout in Windows disappears
Date: 2020-08-31 18:20:28
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Sometimes the output to stdout on Windows on multicore machines does not
go through after connecting and disconnecting to the server using the
PQconnectdbParams and PQfinish functions. I tested on 6 cores.

First we appeared this in some pgbench tests.  Then we found that this
happens on any console program using PQconnectdbParams and PQfinish.

I am attaching a patch and a script for testing.

Victor Spirin
Postgres Professional:
The Russian Postgres Company

Attachment Content-Type Size
stdout.patch text/plain 527 bytes text/plain 412 bytes


Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2020-08-31 18:21:56 LogwrtResult contended spinlock
Previous Message Ranier Vilela 2020-08-31 18:08:49 Re: Clang UndefinedBehaviorSanitize (Postgres14) Detected undefined-behavior