Re: TAP tests aren't using the magic words for Windows file access

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: TAP tests aren't using the magic words for Windows file access
Дата
Msg-id 20191105034138.GF16867@paquier.xyz
обсуждение исходный текст
Ответ на TAP tests aren't using the magic words for Windows file access  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: TAP tests aren't using the magic words for Windows file access  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Re: TAP tests aren't using the magic words for Windows file access  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On Sun, Nov 03, 2019 at 10:53:00PM -0500, Tom Lane wrote:
> That is, TestLib::slurp_file is failing to read a file.  Almost
> certainly, "permission denied" doesn't really mean a permissions
> problem, but failure to specify the file-opening flags needed to
> allow concurrent access on Windows.  We fixed this in pg_ctl
> itself in commit 0ba06e0bf ... but we didn't fix the TAP
> infrastructure.  Is there an easy way to get Perl on board
> with that?

If we were to use Win32API::File so as the file is opened in shared
mode, we would do the same as what our frontend/backend code does (see
$uShare):
https://metacpan.org/pod/Win32API::File
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Run-time pruning for ModifyTable
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Logical replication wal sender timestamp bug