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
412893b4
Commit
412893b4
authored
Jun 10, 2003
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix uninitialized memory bug
Add support for PGHOST, PGPORT, PGUSER environment variables
parent
cdfb3d99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
contrib/pgbench/README.pgbench
contrib/pgbench/README.pgbench
+4
-0
contrib/pgbench/README.pgbench_jis
contrib/pgbench/README.pgbench_jis
+4
-0
contrib/pgbench/pgbench.c
contrib/pgbench/pgbench.c
+15
-4
No files found.
contrib/pgbench/README.pgbench
View file @
412893b4
...
...
@@ -164,6 +164,10 @@ Basically it is same as BSD license. See pgbench.c for more details.
o History
2003/06/10
* fix uninitialized memory bug
* add support for PGHOST, PGPORT, PGUSER environment variables
2002/07/20
* patch contributed by Neil Conway.
* code/document clean up and add -l option.
...
...
contrib/pgbench/README.pgbench_jis
View file @
412893b4
...
...
@@ -184,6 +184,10 @@ pgbench $B$O@P0f(B $BC#IW$K$h$C$F=q$+$l$^$7$?!%%i%$%;%s%9>r7o$O(B pgbench.c
$B"#2~DjMzNr(B
2003/06/10
* $B%a%b%j$,=i4|2=$5$l$F$$$J$$%P%0$r=$@5(B
* $B4D6-JQ?t(BPGHOST, PGPORT, PGUSER$B$rG'<1$9$k$h$&$K$7$?!%(B
2002/07/20
* Nei Conway$B$5$s$N%Q%C%A$rE,MQ!%(B
* -l $B%*%W%7%g%s$NDI2C!%(B
...
...
contrib/pgbench/pgbench.c
View file @
412893b4
/*
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.2
3 2003/05/14 03:25:56 tgl
Exp $
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.2
4 2003/06/10 09:07:15 ishii
Exp $
*
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
* written by Tatsuo Ishii
...
...
@@ -694,6 +694,14 @@ main(int argc, char **argv)
PGconn
*
con
;
PGresult
*
res
;
char
*
env
;
if
((
env
=
getenv
(
"PGHOST"
))
!=
NULL
&&
*
env
!=
'\0'
)
pghost
=
env
;
if
((
env
=
getenv
(
"PGPORT"
))
!=
NULL
&&
*
env
!=
'\0'
)
pgport
=
env
;
else
if
((
env
=
getenv
(
"PGUSER"
))
!=
NULL
&&
*
env
!=
'\0'
)
login
=
env
;
while
((
c
=
getopt
(
argc
,
argv
,
"ih:nvp:dc:t:s:U:P:CNSl"
))
!=
-
1
)
{
...
...
@@ -788,8 +796,11 @@ main(int argc, char **argv)
dbName
=
argv
[
optind
];
else
{
dbName
=
getenv
(
"USER"
);
if
(
dbName
==
NULL
)
if
((
env
=
getenv
(
"PGDATABASE"
))
!=
NULL
&&
*
env
!=
'\0'
)
dbName
=
env
;
else
if
(
login
!=
NULL
&&
*
login
!=
'\0'
)
dbName
=
login
;
else
dbName
=
""
;
}
...
...
@@ -802,7 +813,7 @@ main(int argc, char **argv)
remains
=
nclients
;
state
=
(
CState
*
)
malloc
(
sizeof
(
*
state
)
*
nclients
);
memset
(
state
,
0
,
sizeof
(
*
state
));
memset
(
state
,
0
,
sizeof
(
*
state
)
*
nclients
);
if
(
use_log
)
{
...
...
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