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 1lTe9f-00060p-2N for pgsql-committers@arkaria.postgresql.org; Tue, 06 Apr 2021 05:21:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lTe9d-00009E-KY for pgsql-committers@arkaria.postgresql.org; Tue, 06 Apr 2021 05:21:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTe9d-000095-F8 for pgsql-committers@lists.postgresql.org; Tue, 06 Apr 2021 05:21:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTe9W-0002XL-MZ for pgsql-committers@lists.postgresql.org; Tue, 06 Apr 2021 05:21:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1365LLl2948633; Tue, 6 Apr 2021 01:21:21 -0400 From: Tom Lane To: David Rowley cc: Alvaro Herrera , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Improve PQtrace() output format In-reply-to: <947584.1617684976@sss.pgh.pa.us> References: <947584.1617684976@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 06 Apr 2021 00:56:16 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <948631.1617686481.1@sss.pgh.pa.us> Date: Tue, 06 Apr 2021 01:21:21 -0400 Message-ID: <948632.1617686481@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > As best I can tell from these warnings, VS has the tv_sec field > of struct timeval defined as something other than time_t. Because > VS would never stoop to actually complying with the plain text of > the POSIX standard. Ah, seems like it's really Winsock's fault: https://docs.microsoft.com/en-us/windows/win32/api/winsock/ns-winsock-timeval which compares unfavorably to the POSIX wording The header shall define the timeval structure, which shall include at least the following members: time_t tv_sec Seconds. suseconds_t tv_usec Microseconds. regards, tom lane