From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Improve PQtrace() output format
Date: Tue, 06 Apr 2021 01:21:21 -0400
Message-ID: <948632.1617686481@sss.pgh.pa.us> (raw)
In-Reply-To: <947584.1617684976@sss.pgh.pa.us>
References: <E1lRNc1-0004Bd-RW@gemulon.postgresql.org>
<CAApHDvoRG25X_=ZCGSPb4KN_j2iu=G2uXsRSg8NBZeuhkOSETg@mail.gmail.com>
<947584.1617684976@sss.pgh.pa.us>
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 <sys/time.h> 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
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, dgrowleyml@gmail.com, alvherre@alvh.no-ip.org
Subject: Re: pgsql: Improve PQtrace() output format
In-Reply-To: <948632.1617686481@sss.pgh.pa.us>
References: <E1lRNc1-0004Bd-RW@gemulon.postgresql.org> <CAApHDvoRG25X_=ZCGSPb4KN_j2iu=G2uXsRSg8NBZeuhkOSETg@mail.gmail.com> <947584.1617684976@sss.pgh.pa.us> <948632.1617686481@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