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

Commitc96375a

Browse files
committed
Fix a couple of items that should be declared Oid not int. Purely
cosmetic at the moment, but someday Oid might be 64 bits ...
1 parentca1d4eb commitc96375a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*Copyright (c) 2001-2005, PostgreSQL Global Development Group
1515
*
16-
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.95 2005/05/29 04:23:03 tgl Exp $
16+
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.96 2005/06/2523:58:57 tgl Exp $
1717
* ----------
1818
*/
1919
#include"postgres.h"
@@ -162,7 +162,7 @@ static void pgstat_exit(SIGNAL_ARGS);
162162
staticvoidpgstat_die(SIGNAL_ARGS);
163163
staticvoidpgstat_beshutdown_hook(intcode,Datumarg);
164164

165-
staticPgStat_StatDBEntry*pgstat_get_db_entry(intdatabaseid);
165+
staticPgStat_StatDBEntry*pgstat_get_db_entry(Oiddatabaseid);
166166
staticintpgstat_add_backend(PgStat_MsgHdr*msg);
167167
staticvoidpgstat_sub_backend(intprocpid);
168168
staticvoidpgstat_drop_database(Oiddatabaseid);
@@ -2052,7 +2052,7 @@ pgstat_add_backend(PgStat_MsgHdr *msg)
20522052
* table entry exists, initialize it.
20532053
*/
20542054
staticPgStat_StatDBEntry*
2055-
pgstat_get_db_entry(intdatabaseid)
2055+
pgstat_get_db_entry(Oiddatabaseid)
20562056
{
20572057
PgStat_StatDBEntry*result;
20582058
boolfound;

‎src/include/pgstat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
*Copyright (c) 2001-2005, PostgreSQL Global Development Group
77
*
8-
*$PostgreSQL: pgsql/src/include/pgstat.h,v 1.29 2005/05/11 01:41:41 neilc Exp $
8+
*$PostgreSQL: pgsql/src/include/pgstat.h,v 1.30 2005/06/25 23:58:58 tgl Exp $
99
* ----------
1010
*/
1111
#ifndefPGSTAT_H
@@ -138,7 +138,7 @@ typedef struct PgStat_MsgActivity
138138
typedefstructPgStat_MsgTabstat
139139
{
140140
PgStat_MsgHdrm_hdr;
141-
intm_databaseid;
141+
Oidm_databaseid;
142142
intm_nentries;
143143
intm_xact_commit;
144144
intm_xact_rollback;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp