pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marina Polyakova <m.polyakova@postgrespro.ru>
To: coelho@cri.ensmp.fr
Cc: pgsql-hackers@postgresql.org
Cc: kuroda.hayato@fujitsu.com
Subject: Re: pgbench: option delaying queries till connections establishment?
Date: Sat, 14 Nov 2020 16:48:51 +0300
Message-ID: <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru> (raw)
In-Reply-To: <OSBPR01MB3157D2C741ED22422E0FF9E6F5E60@OSBPR01MB3157.jpnprd01.prod.outlook.com>
References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de>
	<20200227185129.hikscyenomnlrord@alap3.anarazel.de>
	<alpine.DEB.2.21.2003012113350.25187@pseudo>
	<20200304174003.ovg5wml4mrgheyio@alap3.anarazel.de>
	<alpine.DEB.2.21.2003070905250.21542@pseudo>
	<alpine.DEB.2.22.394.2005171141510.977310@pseudo>
	<6AA0DF24-8F6B-4329-AA3B-85B167599747@yesql.se>
	<alpine.DEB.2.22.394.2007040832490.2875037@pseudo>
	<OSBPR01MB3157E66E31329E4741402E96F5190@OSBPR01MB3157.jpnprd01.prod.outlook.com>
	<alpine.DEB.2.22.394.2011021726390.989361@pseudo>
	<OSBPR01MB3157A7306BFF163490ED837BF5ED0@OSBPR01MB3157.jpnprd01.prod.outlook.com>
	<alpine.DEB.2.22.394.2011062034410.1605435@pseudo>
	<OSBPR01MB3157F335F242DBCDBC09DF82F5E80@OSBPR01MB3157.jpnprd01.prod.outlook.com>
	<alpine.DEB.2.22.394.2011111316540.3832060@pseudo>
	<OSBPR01MB3157D2C741ED22422E0FF9E6F5E60@OSBPR01MB3157.jpnprd01.prod.outlook.com>

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:

<para>
  <productname>PostgreSQL</productname> 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
  <xref linkend="installation-platform-notes"/> below to see if
  there is information
  specific to your operating system, particularly if using an older 
system.
</para>

<...>

<para>
  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 <command>configure</command>, can be downloaded
  from <ulink url="http://www.mingw.org/"></ulink;.  Neither is
  required to run the resulting binaries; they are needed only for
  creating the binaries.
</para>

[2] 
https://www.postgresql.org/message-id/e5a09b790db21356376b6e73673aa07c%40postgrespro.ru

-- 
Marina Polyakova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company





view thread (54+ messages)  latest in thread

Message-ID: <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru>
Permalink:  ../0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru/
Also on:    postgresql.org/message-id/0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: m.polyakova@postgrespro.ru, coelho@cri.ensmp.fr, kuroda.hayato@fujitsu.com
  Subject: Re: pgbench: option delaying queries till connections establishment?
  In-Reply-To: <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru>
  References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <20200227185129.hikscyenomnlrord@alap3.anarazel.de> <alpine.DEB.2.21.2003012113350.25187@pseudo> <20200304174003.ovg5wml4mrgheyio@alap3.anarazel.de> <alpine.DEB.2.21.2003070905250.21542@pseudo> <alpine.DEB.2.22.394.2005171141510.977310@pseudo> <6AA0DF24-8F6B-4329-AA3B-85B167599747@yesql.se> <alpine.DEB.2.22.394.2007040832490.2875037@pseudo> <OSBPR01MB3157E66E31329E4741402E96F5190@OSBPR01MB3157.jpnprd01.prod.outlook.com> <alpine.DEB.2.22.394.2011021726390.989361@pseudo> <OSBPR01MB3157A7306BFF163490ED837BF5ED0@OSBPR01MB3157.jpnprd01.prod.outlook.com> <alpine.DEB.2.22.394.2011062034410.1605435@pseudo> <OSBPR01MB3157F335F242DBCDBC09DF82F5E80@OSBPR01MB3157.jpnprd01.prod.outlook.com> <alpine.DEB.2.22.394.2011111316540.3832060@pseudo> <OSBPR01MB3157D2C741ED22422E0FF9E6F5E60@OSBPR01MB3157.jpnprd01.prod.outlook.com> <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox