Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3896f48d
Commit
3896f48d
authored
Aug 01, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some minor portability issues, per Chris K-L.
parent
30f665d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
contrib/pgbench/pgbench.c
contrib/pgbench/pgbench.c
+5
-5
contrib/pgstattuple/pgstattuple.c
contrib/pgstattuple/pgstattuple.c
+7
-7
No files found.
contrib/pgbench/pgbench.c
View file @
3896f48d
/*
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.2
4 2003/06/10 09:07:15 ishii
Exp $
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.2
5 2003/08/01 02:21:17 tgl
Exp $
*
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
* written by Tatsuo Ishii
...
...
@@ -41,6 +41,10 @@
#include <sys/resource.h>
#endif
/* ! WIN32 */
extern
char
*
optarg
;
extern
int
optind
;
/********************************************************************
* some configurable parameters */
...
...
@@ -661,10 +665,6 @@ printResults(
int
main
(
int
argc
,
char
**
argv
)
{
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
int
c
;
int
is_init_mode
=
0
;
/* initialize mode? */
int
is_no_vacuum
=
0
;
/* no vacuum at all before
...
...
contrib/pgstattuple/pgstattuple.c
View file @
3896f48d
/*
* $Header: /cvsroot/pgsql/contrib/pgstattuple/pgstattuple.c,v 1.1
0 2003/06/12 08:02:53 momjian
Exp $
* $Header: /cvsroot/pgsql/contrib/pgstattuple/pgstattuple.c,v 1.1
1 2003/08/01 02:21:17 tgl
Exp $
*
* Copyright (c) 2001,2002 Tatsuo Ishii
*
...
...
@@ -200,14 +200,14 @@ pgstattuple_real(Relation rel)
for
(
i
=
0
;
i
<
NCOLUMNS
;
i
++
)
values
[
i
]
=
(
char
*
)
palloc
(
NCHARS
*
sizeof
(
char
));
i
=
0
;
snprintf
(
values
[
i
++
],
NCHARS
,
"%lld"
,
table_len
);
snprintf
(
values
[
i
++
],
NCHARS
,
"%lld"
,
tuple_count
);
snprintf
(
values
[
i
++
],
NCHARS
,
"%lld"
,
tuple_len
);
snprintf
(
values
[
i
++
],
NCHARS
,
INT64_FORMAT
,
table_len
);
snprintf
(
values
[
i
++
],
NCHARS
,
INT64_FORMAT
,
tuple_count
);
snprintf
(
values
[
i
++
],
NCHARS
,
INT64_FORMAT
,
tuple_len
);
snprintf
(
values
[
i
++
],
NCHARS
,
"%.2f"
,
tuple_percent
);
snprintf
(
values
[
i
++
],
NCHARS
,
"%lld"
,
dead_tuple_count
);
snprintf
(
values
[
i
++
],
NCHARS
,
"%lld"
,
dead_tuple_len
);
snprintf
(
values
[
i
++
],
NCHARS
,
INT64_FORMAT
,
dead_tuple_count
);
snprintf
(
values
[
i
++
],
NCHARS
,
INT64_FORMAT
,
dead_tuple_len
);
snprintf
(
values
[
i
++
],
NCHARS
,
"%.2f"
,
dead_tuple_percent
);
snprintf
(
values
[
i
++
],
NCHARS
,
"%lld"
,
free_space
);
snprintf
(
values
[
i
++
],
NCHARS
,
INT64_FORMAT
,
free_space
);
snprintf
(
values
[
i
++
],
NCHARS
,
"%.2f"
,
free_percent
);
/* build a tuple */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment