Re: pgsql: Improve PQtrace() output format

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: pgsql: Improve PQtrace() output format
Дата
Msg-id CAApHDvoRG25X_=ZCGSPb4KN_j2iu=G2uXsRSg8NBZeuhkOSETg@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Improve PQtrace() output format  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: pgsql: Improve PQtrace() output format  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Wed, 31 Mar 2021 at 12:17, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
>
> Improve PQtrace() output format

I see the Visual Studio buildfarm members have been getting a compiler
warning since this commit [1]

(ClCompile target) ->
  src/interfaces/libpq/fe-trace.c(87): warning C4133: 'function':
incompatible types - from 'long *' to 'const time_t *const '
[C:\\pgbuildfarm\\pgbuildroot\\HEAD\\pgsql.build\\libpq.vcxproj]

It looks like this is due to long being 32-bits on Visual Studio.

We could just assign tval.tv_sec to a local time_t value to get rid of
it.  See attached.

David

[1] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=dory&dt=2021-04-06%2001%3A00%3A07&stg=make

Вложения

В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix some issues with SSL and Kerberos tests
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Add function to log the memory contexts of specified backend pro