|
@@ -1,65 +0,0 @@
|
|
-
|
|
|
|
-DROP TABLE IF EXISTS world;
|
|
|
|
-CREATE TABLE world (
|
|
|
|
- id integer NOT NULL default 0,
|
|
|
|
- randomNumber integer NOT NULL default 0,
|
|
|
|
- PRIMARY KEY (id)
|
|
|
|
-);
|
|
|
|
-GRANT SELECT, UPDATE ON world to benchmarkdbuser;
|
|
|
|
-
|
|
|
|
-INSERT INTO world (id, randomnumber)
|
|
|
|
-SELECT x.id, random() * 10000 + 1 FROM generate_series(1,10000) as x(id);
|
|
|
|
-
|
|
|
|
-DROP TABLE IF EXISTS fortune;
|
|
|
|
-CREATE TABLE fortune (
|
|
|
|
- id integer NOT NULL default 0,
|
|
|
|
- message varchar(2048) NOT NULL default '',
|
|
|
|
- PRIMARY KEY (id)
|
|
|
|
-);
|
|
|
|
-GRANT SELECT ON fortune to benchmarkdbuser;
|
|
|
|
-
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (1, 'fortune: No such file or directory');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (2, 'A computer scientist is someone who fixes things that aren''t broken.');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (3, 'After enough decimal places, nobody gives a damn.');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (4, 'A bad random number generator: 1, 1, 1, 1, 1, 4.33e+67, 1, 1, 1');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (5, 'A computer program does what you tell it to do, not what you want it to do.');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (6, 'Emacs is a nice operating system, but I prefer UNIX. — Tom Christaensen');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (7, 'Any program that runs right is obsolete.');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (8, 'A list is only as strong as its weakest link. — Donald Knuth');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (9, 'Feature: A bug with seniority.');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (10, 'Computers make very fast, very accurate mistakes.');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (11, '<script>alert("This should not be displayed in a browser alert box.");</script>');
|
|
|
|
-INSERT INTO fortune (id, message) VALUES (12, 'フレームワークのベンチマーク');
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-DROP TABLE IF EXISTS "world";
|
|
|
|
-CREATE TABLE "world" (
|
|
|
|
- id integer NOT NULL default 0,
|
|
|
|
- randomNumber integer NOT NULL default 0,
|
|
|
|
- PRIMARY KEY (id)
|
|
|
|
-);
|
|
|
|
-GRANT SELECT, UPDATE ON "world" to benchmarkdbuser;
|
|
|
|
-
|
|
|
|
-INSERT INTO "world" (id, randomnumber)
|
|
|
|
-SELECT x.id, random() * 10000 + 1 FROM generate_series(1,10000) as x(id);
|
|
|
|
-
|
|
|
|
-DROP TABLE IF EXISTS "fortune";
|
|
|
|
-CREATE TABLE "fortune" (
|
|
|
|
- id integer NOT NULL default 0,
|
|
|
|
- message varchar(2048) NOT NULL default '',
|
|
|
|
- PRIMARY KEY (id)
|
|
|
|
-);
|
|
|
|
-GRANT SELECT ON "fortune" to benchmarkdbuser;
|
|
|
|
-
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (1, 'fortune: No such file or directory');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (2, 'A computer scientist is someone who fixes things that aren''t broken.');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (3, 'After enough decimal places, nobody gives a damn.');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (4, 'A bad random number generator: 1, 1, 1, 1, 1, 4.33e+67, 1, 1, 1');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (5, 'A computer program does what you tell it to do, not what you want it to do.');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (6, 'Emacs is a nice operating system, but I prefer UNIX. — Tom Christaensen');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (7, 'Any program that runs right is obsolete.');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (8, 'A list is only as strong as its weakest link. — Donald Knuth');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (9, 'Feature: A bug with seniority.');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (10, 'Computers make very fast, very accurate mistakes.');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (11, '<script>alert("This should not be displayed in a browser alert box.");</script>');
|
|
|
|
-INSERT INTO "fortune" (id, message) VALUES (12, 'フレームワークのベンチマーク');
|
|
|