Purpose
This page provides a way to check if the Database Server where you will run the PGBench has performance issues.
Applicable RDBMS
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS3 | |
CSS2 | |
CSS1 |
Applicable Platform or <Sub Platform Version>
Platform or <Sub Platform Version> | Yes/No |
---|---|
Details
Create a batch and copy the below content after having changed the parameter
@echo off @echo off set PGPASSWORD=CastAIP set PGHOST=<YOUR POSTGRESQL SERVER NAME> set PGPORT=<THE PORT> set EXEDIR=%ProgramFiles%\CAST\CASTStorageService3\bin "%EXEDIR%\createdb" -U operator pgbench "%EXEDIR%\pgbench" -i -s 10 -F 10 -U operator pgbench @echo on "%EXEDIR%\pgbench" -U operator -c 5 -T180 pgbench > %TEMP%\pgbench.txt @echo off "%EXEDIR%\psql" -c "drop database pgbench" postgres operator type %TEMP%\pgbench.txt pause
Execute the batch file
- A text file will be generated in %TEMP% folder, the name is pgbench.txt.
Notes/comments
Related Pages