Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdvvJ-0002kH-JN for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Nov 2020 13:49:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdvvI-000627-3x for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Nov 2020 13:49:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdvvH-00061z-QC for pgsql-hackers@lists.postgresql.org; Sat, 14 Nov 2020 13:48:59 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdvvE-0004d3-GA for pgsql-hackers@postgresql.org; Sat, 14 Nov 2020 13:48:58 +0000 Received: from mail.postgrespro.ru (cyclops.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 05D6621C5534; Sat, 14 Nov 2020 16:48:52 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1605361732; bh=1MiiwAsLD/0Xnwi7qjpS+dVAUdjGW42M7U6J9DrKNYA=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=R93+g6wqoLmqBASUu6K6LzaKAzr6qWfhp8WWvul4n1oR+O0ZO0Yp8MKHy2JS3srWB X9FG0rvn5UMSEVzoW+8/0so4QxNG+CthekleTCgcLV3P5zkoo3WZFXoW7y3CkncL7J TP2/OoSaOMuLqgXa9RoG+/MCIvyWEAPAf9QcJ5NQ= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 14 Nov 2020 16:48:51 +0300 From: Marina Polyakova To: coelho@cri.ensmp.fr Cc: pgsql-hackers@postgresql.org, kuroda.hayato@fujitsu.com Subject: Re: pgbench: option delaying queries till connections establishment? In-Reply-To: References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <20200227185129.hikscyenomnlrord@alap3.anarazel.de> <20200304174003.ovg5wml4mrgheyio@alap3.anarazel.de> <6AA0DF24-8F6B-4329-AA3B-85B167599747@yesql.se> User-Agent: Roundcube Webmail/1.4.0 Message-ID: <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru> X-Sender: m.polyakova@postgrespro.ru Organization: Postgres Professional List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello! On 2020-11-13 08:44, kuroda.hayato@fujitsu.com wrote: > Dear Fabien, > >> and this will wait till its time comes. In the mean time, I think that >> you >> should put the patch status as you see fit, independently of the other >> patch: it seems unlikely that they would be committed together, and >> I'll >> have to merge the remaining one anyway. > > OK. I found the related thread[1], and I understood you will submit > another patch > on the thread. > > PostgreSQL Patch Tester says all regression tests are passed, and > I change the status to "Ready for committer." > > [1]: https://commitfest.postgresql.org/31/2827/ > > Thank you for discussing with me. > > Hayato Kuroda > FUJITSU LIMITED From the mentioned thread [2]: >>> While trying to test a patch that adds a synchronization barrier in >>> pgbench [1] on Windows, >> >> Thanks for trying that, I do not have a windows setup for testing, and >> the sync code I wrote for Windows is basically blind coding:-( > > FYI: > > 1) It looks like pgbench will no longer support Windows XP due to the > function DeleteSynchronizationBarrier. From > https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-deletesynchronizationbarrier > : > > Minimum supported client: Windows 8 [desktop apps only] > Minimum supported server: Windows Server 2012 [desktop apps only] > > On Windows Server 2008 R2 (MSVC 2013) the 6-th version of the patch > [1] has compiled without (new) warnings, but when running pgbench I > got the following error: > > The procedure entry point DeleteSynchronizationBarrier could not be > located in the dynamic link library KERNEL32.dll. IMO, it looks like either old Windows systems should not call new functions, or we should throw them a compilation error. (Update MIN_WINNT to 0x0602 = Windows 8 in src/include/port/win32.h?) In the second case it looks like the documentation should be updated too, see doc/src/sgml/installation.sgml: PostgreSQL can be expected to work on these operating systems: Linux (all recent distributions), Windows (XP and later), FreeBSD, OpenBSD, NetBSD, macOS, AIX, HP/UX, and Solaris. Other Unix-like systems may also work but are not currently being tested. In most cases, all CPU architectures supported by a given operating system will work. Look in below to see if there is information specific to your operating system, particularly if using an older system. <...> The native Windows port requires a 32 or 64-bit version of Windows 2000 or later. Earlier operating systems do not have sufficient infrastructure (but Cygwin may be used on those). MinGW, the Unix-like build tools, and MSYS, a collection of Unix tools required to run shell scripts like configure, can be downloaded from . Neither is required to run the resulting binaries; they are needed only for creating the binaries. [2] https://www.postgresql.org/message-id/e5a09b790db21356376b6e73673aa07c%40postgrespro.ru -- Marina Polyakova Postgres Professional: http://www.postgrespro.com The Russian Postgres Company