pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Jawarilal, Manish <Manish.Jawarilal@dell.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: pgbench bug / limitation
Date: Mon, 01 Jun 2020 20:56:54 -0400
Message-ID: <513887.1591059414@sss.pgh.pa.us> (raw)
In-Reply-To: <CAApHDvrjWtJa9oQ98oH+9PCvTgOkGZP+gcmottNX95sjn6o9fQ@mail.gmail.com>
References: <BL0PR1901MB1985F219C46C61EDE7036C34ED8E0@BL0PR1901MB1985.namprd19.prod.outlook.com>
	<7221.1590687090@sss.pgh.pa.us>
	<BL0PR1901MB1985A8B4D3E5B39E32A9EA55ED8F0@BL0PR1901MB1985.namprd19.prod.outlook.com>
	<10327.1590763515@sss.pgh.pa.us>
	<BL0PR1901MB198583EAC6C8A3B770D20F1AED8A0@BL0PR1901MB1985.namprd19.prod.outlook.com>
	<384920.1591027137@sss.pgh.pa.us>
	<CAApHDvrjWtJa9oQ98oH+9PCvTgOkGZP+gcmottNX95sjn6o9fQ@mail.gmail.com>

David Rowley <dgrowleyml@gmail.com> writes:
> ... I can't glean too much from the
> socket() documentation for either OS about what the return value is.
> I didn't see anything which indicated anything about how the return
> value is determined.

BTW, as far as that goes, POSIX is perfectly clear about this:

  2.14. File Descriptor Allocation

    All functions that open one or more file descriptors shall, unless
    specified otherwise, atomically allocate the lowest numbered available
    (that is, not already open in the calling process) file descriptor at
    the time of each allocation.

It doesn't surprise me a lot to hear that Microsoft couldn't be
bothered to adhere to the spec, though.

			regards, tom lane





view thread (26+ messages)  latest in thread

Message-ID: <513887.1591059414@sss.pgh.pa.us>
Permalink:  ../513887.1591059414@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/513887.1591059414@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dgrowleyml@gmail.com, Manish.Jawarilal@dell.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: pgbench bug / limitation
  In-Reply-To: <513887.1591059414@sss.pgh.pa.us>

* 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