Skip to content

Commit c96375a

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 parent ca1d4eb commit c96375a

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/25 23:58:57 tgl Exp $
1717
* ----------
1818
*/
1919
#include "postgres.h"
@@ -162,7 +162,7 @@ static void pgstat_exit(SIGNAL_ARGS);
162162
static void pgstat_die(SIGNAL_ARGS);
163163
static void pgstat_beshutdown_hook(int code, Datum arg);
164164

165-
static PgStat_StatDBEntry *pgstat_get_db_entry(int databaseid);
165+
static PgStat_StatDBEntry *pgstat_get_db_entry(Oid databaseid);
166166
static int pgstat_add_backend(PgStat_MsgHdr *msg);
167167
static void pgstat_sub_backend(int procpid);
168168
static void pgstat_drop_database(Oid databaseid);
@@ -2052,7 +2052,7 @@ pgstat_add_backend(PgStat_MsgHdr *msg)
20522052
* table entry exists, initialize it.
20532053
*/
20542054
static PgStat_StatDBEntry *
2055-
pgstat_get_db_entry(int databaseid)
2055+
pgstat_get_db_entry(Oid databaseid)
20562056
{
20572057
PgStat_StatDBEntry *result;
20582058
bool found;

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
#ifndef PGSTAT_H
@@ -138,7 +138,7 @@ typedef struct PgStat_MsgActivity
138138
typedef struct PgStat_MsgTabstat
139139
{
140140
PgStat_MsgHdr m_hdr;
141-
int m_databaseid;
141+
Oid m_databaseid;
142142
int m_nentries;
143143
int m_xact_commit;
144144
int m_xact_rollback;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy