diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-25 23:58:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-25 23:58:58 +0000 |
commit | c96375a39b28e54e19fa5c9c2e3dd69c44b7618c (patch) | |
tree | 7dfa38d38d9eff2666614c85bc004fc07e40d9d3 | |
parent | ca1d4eb7f8dfd7310980a83083c755005a3b2a22 (diff) | |
download | postgresql-c96375a39b28e54e19fa5c9c2e3dd69c44b7618c.tar.gz postgresql-c96375a39b28e54e19fa5c9c2e3dd69c44b7618c.zip |
Fix a couple of items that should be declared Oid not int. Purely
cosmetic at the moment, but someday Oid might be 64 bits ...
-rw-r--r-- | src/backend/postmaster/pgstat.c | 6 | ||||
-rw-r--r-- | src/include/pgstat.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index b7f15ea38eb..8366bdb8b4c 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -13,7 +13,7 @@ * * Copyright (c) 2001-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.95 2005/05/29 04:23:03 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.96 2005/06/25 23:58:57 tgl Exp $ * ---------- */ #include "postgres.h" @@ -162,7 +162,7 @@ static void pgstat_exit(SIGNAL_ARGS); static void pgstat_die(SIGNAL_ARGS); static void pgstat_beshutdown_hook(int code, Datum arg); -static PgStat_StatDBEntry *pgstat_get_db_entry(int databaseid); +static PgStat_StatDBEntry *pgstat_get_db_entry(Oid databaseid); static int pgstat_add_backend(PgStat_MsgHdr *msg); static void pgstat_sub_backend(int procpid); static void pgstat_drop_database(Oid databaseid); @@ -2052,7 +2052,7 @@ pgstat_add_backend(PgStat_MsgHdr *msg) * table entry exists, initialize it. */ static PgStat_StatDBEntry * -pgstat_get_db_entry(int databaseid) +pgstat_get_db_entry(Oid databaseid) { PgStat_StatDBEntry *result; bool found; diff --git a/src/include/pgstat.h b/src/include/pgstat.h index ad1239b985c..2382ceae936 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -5,7 +5,7 @@ * * Copyright (c) 2001-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.29 2005/05/11 01:41:41 neilc Exp $ + * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.30 2005/06/25 23:58:58 tgl Exp $ * ---------- */ #ifndef PGSTAT_H @@ -138,7 +138,7 @@ typedef struct PgStat_MsgActivity typedef struct PgStat_MsgTabstat { PgStat_MsgHdr m_hdr; - int m_databaseid; + Oid m_databaseid; int m_nentries; int m_xact_commit; int m_xact_rollback; |