Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
c96375a3
Commit
c96375a3
authored
19 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix a couple of items that should be declared Oid not int. Purely
cosmetic at the moment, but someday Oid might be 64 bits ...
parent
ca1d4eb7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/postmaster/pgstat.c
+3
-3
3 additions, 3 deletions
src/backend/postmaster/pgstat.c
src/include/pgstat.h
+2
-2
2 additions, 2 deletions
src/include/pgstat.h
with
5 additions
and
5 deletions
src/backend/postmaster/pgstat.c
+
3
−
3
View file @
c96375a3
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
*
*
* Copyright (c) 2001-2005, PostgreSQL Global Development Group
* Copyright (c) 2001-2005, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.9
5
2005/0
5
/2
9 04:23:03
tgl Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.9
6
2005/0
6
/2
5 23:58:57
tgl Exp $
* ----------
* ----------
*/
*/
#include
"postgres.h"
#include
"postgres.h"
...
@@ -162,7 +162,7 @@ static void pgstat_exit(SIGNAL_ARGS);
...
@@ -162,7 +162,7 @@ static void pgstat_exit(SIGNAL_ARGS);
static
void
pgstat_die
(
SIGNAL_ARGS
);
static
void
pgstat_die
(
SIGNAL_ARGS
);
static
void
pgstat_beshutdown_hook
(
int
code
,
Datum
arg
);
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
int
pgstat_add_backend
(
PgStat_MsgHdr
*
msg
);
static
void
pgstat_sub_backend
(
int
procpid
);
static
void
pgstat_sub_backend
(
int
procpid
);
static
void
pgstat_drop_database
(
Oid
databaseid
);
static
void
pgstat_drop_database
(
Oid
databaseid
);
...
@@ -2052,7 +2052,7 @@ pgstat_add_backend(PgStat_MsgHdr *msg)
...
@@ -2052,7 +2052,7 @@ pgstat_add_backend(PgStat_MsgHdr *msg)
* table entry exists, initialize it.
* table entry exists, initialize it.
*/
*/
static
PgStat_StatDBEntry
*
static
PgStat_StatDBEntry
*
pgstat_get_db_entry
(
int
databaseid
)
pgstat_get_db_entry
(
Oid
databaseid
)
{
{
PgStat_StatDBEntry
*
result
;
PgStat_StatDBEntry
*
result
;
bool
found
;
bool
found
;
...
...
This diff is collapsed.
Click to expand it.
src/include/pgstat.h
+
2
−
2
View file @
c96375a3
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Copyright (c) 2001-2005, PostgreSQL Global Development Group
* Copyright (c) 2001-2005, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/include/pgstat.h,v 1.
29
2005/0
5/11 01:41:41 neilc
Exp $
* $PostgreSQL: pgsql/src/include/pgstat.h,v 1.
30
2005/0
6/25 23:58:58 tgl
Exp $
* ----------
* ----------
*/
*/
#ifndef PGSTAT_H
#ifndef PGSTAT_H
...
@@ -138,7 +138,7 @@ typedef struct PgStat_MsgActivity
...
@@ -138,7 +138,7 @@ typedef struct PgStat_MsgActivity
typedef
struct
PgStat_MsgTabstat
typedef
struct
PgStat_MsgTabstat
{
{
PgStat_MsgHdr
m_hdr
;
PgStat_MsgHdr
m_hdr
;
int
m_databaseid
;
Oid
m_databaseid
;
int
m_nentries
;
int
m_nentries
;
int
m_xact_commit
;
int
m_xact_commit
;
int
m_xact_rollback
;
int
m_xact_rollback
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment