*
* 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"
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);
* 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;
*
* 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
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;