Skip to content

Commit 43aa40e

Browse files
committed
In pg_upgrade, add C comment about why we don't try to do shared file
writes for logging.
1 parent a9f0dbc commit 43aa40e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/pg_upgrade/pg_upgrade.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ typedef struct
207207
* because it is being used by another process." so we have to send all
208208
* other output to 'nul'. Therefore, we set this to DEVNULL on Win32, and
209209
* it equals 'filename' on all other platforms.
210+
*
211+
* We could use the Windows pgwin32_open() flags to allow shared file
212+
* writes but is unclear how all other tools would use those flags, so
213+
* we just avoid it and log a little less on Windows.
210214
*/
211215
char *filename2;
212216
FILE *fd; /* log FILE */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy