postgresql/src
Amit Kapila 6f97ef05d6 Fix an intermetant BF failure in 003_logical_slots.
During upgrade, when pg_restore performs CREATE DATABASE, bgwriter or
checkpointer may flush buffers and hold a file handle for pg_largeobject,
so later TRUNCATE pg_largeobject command will fail if OS (such as older
Windows versions) doesn't remove an unlinked file completely till it's
open. The probability of seeing this behavior is higher in this test
because we use wal_level as logical via allows_streaming => 'logical'
which in turn set shared_buffers as 1MB and make it more probable for
bgwriter to hold the file handle.

Diagnosed-by: Alexander Lakhin
Author: Hayato Kuroda, Amit Kapila
Reviewed-by: Alexander Lakhin
Discussion: https://postgr.es/m/TYAPR01MB5866AB7FD922CE30A2565B8BF5A8A@TYAPR01MB5866.jpnprd01.prod.outlook.com
2024-01-11 08:56:27 +05:30
..
backend Restore initdb's old behavior of always setting the lc_xxx GUCs. 2024-01-10 18:09:29 -05:00
bin Fix an intermetant BF failure in 003_logical_slots. 2024-01-11 08:56:27 +05:30
common Update copyright for 2024 2024-01-03 20:49:05 -05:00
fe_utils Update copyright for 2024 2024-01-03 20:49:05 -05:00
include Cross-check lists of predefined LWLocks. 2024-01-09 11:05:19 -06:00
interfaces Add new function, PQchangePassword(), to libpq 2024-01-09 09:16:48 -05:00
makefiles Update copyright for 2024 2024-01-03 20:49:05 -05:00
pl Clean up some edge cases in plpgsql's %TYPE parsing. 2024-01-05 14:32:34 -05:00
port Update copyright for 2024 2024-01-03 20:49:05 -05:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test pg_regress: Disable autoruns for cmd.exe on Windows 2024-01-11 10:39:58 +09:00
timezone Update copyright for 2024 2024-01-03 20:49:05 -05:00
tools Add copyright notices to a few perl scripts that don't have them 2024-01-05 13:15:50 +00:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Initialize data directories with --lc-messages=C for tests. 2023-12-21 15:10:13 -08:00
Makefile.shlib Stop using "-multiply_defined suppress" on macOS. 2023-09-26 21:06:21 -04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00