Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita81b9d6

Browse files
committed
Fix random build breakage from log_disconnections patch.
1 parent59f9a0b commita81b9d6

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.392 2004/02/17 04:09:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.393 2004/02/21 06:29:58 tgl Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -3240,8 +3240,9 @@ log_disconnections(int code, Datum arg)
32403240
snprintf(session_time,sizeof(session_time),"negative!");
32413241
else
32423242
/* for stricter accuracy here we could round - this is close enough */
3243-
snprintf(session_time,sizeof(session_time),"%d:%02d:%02d.%02ld",
3244-
hours,minutes,seconds,end.tv_usec/10000);
3243+
snprintf(session_time,sizeof(session_time),
3244+
"%d:%02d:%02d.%02d",
3245+
hours,minutes,seconds, (int) (end.tv_usec/10000));
32453246

32463247
ereport(
32473248
LOG,

‎src/include/libpq/libpq-be.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@
1111
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.40 2004/02/17 03:54:57 momjian Exp $
14+
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.41 2004/02/21 06:29:58 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
1818
#ifndefLIBPQ_BE_H
1919
#defineLIBPQ_BE_H
2020

21-
#include"libpq/hba.h"
22-
#include"libpq/pqcomm.h"
23-
21+
#include<sys/time.h>
2422
#ifdefUSE_SSL
2523
#include<openssl/ssl.h>
2624
#include<openssl/err.h>
2725
#endif
2826

27+
#include"libpq/hba.h"
28+
#include"libpq/pqcomm.h"
29+
2930

3031
typedefenumCAC_state
3132
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp