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
cfe0d67d
Commit
cfe0d67d
authored
Apr 17, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some slight changes to the Wisconsin Benchmark tests since postgres requires
a -D<datadir> option
parent
a0d63ac9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
src/test/bench/create.sh
src/test/bench/create.sh
+8
-4
src/test/bench/runwisc.sh
src/test/bench/runwisc.sh
+8
-3
No files found.
src/test/bench/create.sh
View file @
cfe0d67d
#!/bin/sh
#!/bin/sh
# $Header: /cvsroot/pgsql/src/test/bench/Attic/create.sh,v 1.
1.1.1 1996/07/09 06:22:21
scrappy Exp $
# $Header: /cvsroot/pgsql/src/test/bench/Attic/create.sh,v 1.
2 1997/04/17 13:48:49
scrappy Exp $
#
#
if
[
!
-d
$1
]
;
then
echo
" you must specify a valid data directory "
exit
fi
if
[
-d
./obj
]
;
then
if
[
-d
./obj
]
;
then
cd
./obj
cd
./obj
fi
fi
echo
===============
destroying old bench database...
=================
echo
===============
destroying old bench database...
=================
echo
"drop database bench"
| postgres template1
>
/dev/null
echo
"drop database bench"
| postgres
-D
${
1
}
template1
>
/dev/null
echo
===============
creating new bench database...
=================
echo
===============
creating new bench database...
=================
echo
"create database bench"
| postgres template1
>
/dev/null
echo
"create database bench"
| postgres
-D
${
1
}
template1
>
/dev/null
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
echo
createdb failed
echo
createdb failed
exit
1
exit
1
fi
fi
postgres
-Q
bench < create.sql
>
/dev/null
postgres
-
D
${
1
}
-
Q
bench < create.sql
>
/dev/null
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
echo
initial database load failed
echo
initial database load failed
exit
1
exit
1
...
...
src/test/bench/runwisc.sh
View file @
cfe0d67d
#!/bin/sh
#!/bin/sh
# $Header: /cvsroot/pgsql/src/test/bench/Attic/runwisc.sh,v 1.
1.1.1 1996/07/09 06:22:23
scrappy Exp $
# $Header: /cvsroot/pgsql/src/test/bench/Attic/runwisc.sh,v 1.
2 1997/04/17 13:48:52
scrappy Exp $
#
#
# Note that in our published benchmark numbers, we executed the command in the
# Note that in our published benchmark numbers, we executed the command in the
# following fashion:
# following fashion:
#
#
# time $POSTGRES -texecutor -tplanner -f hashjoin -Q bench
# time $POSTGRES -texecutor -tplanner -f hashjoin -Q bench
#
#
if
[
!
-d
$1
]
;
then
echo
" you must specify a valid data directory "
exit
fi
if
[
-d
./obj
]
;
then
if
[
-d
./obj
]
;
then
cd
./obj
cd
./obj
fi
fi
echo
===============
vacuuming benchmark database...
=================
echo
===============
vacuuming benchmark database...
=================
echo
"vacuum"
| postgres
-Q
bench
>
/dev/null
echo
"vacuum"
| postgres
-
D
${
1
}
-
Q
bench
>
/dev/null
echo
===============
running benchmark...
=================
echo
===============
running benchmark...
=================
time
postgres
-texecutor
-tplanner
-Q
bench < bench.sql
time
postgres
-
D
${
1
}
-
texecutor
-tplanner
-Q
bench < bench.sql
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