Skip to content

Commit 1fc6211

Browse files
committed
Delete the hist_id primary key column from TPC-C example.
See pgsql-io/benchmarksql@47e51bd97.
1 parent 0996fe5 commit 1fc6211

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

res/tpcc/tpcc.jsonnet

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,6 @@ local dbdbgen = import 'dbdbgen.libsonnet';
396396
rows_per_file: 3e6,
397397
template_string: |||
398398
create table %(prefix)shistory (
399-
hist_id serial,
400-
/*{{ rownum }}*/
401399
h_c_id integer,
402400
/*{{ mod(rownum-1, 3000)+1 }}*/
403401
h_c_d_id integer,
@@ -412,11 +410,10 @@ local dbdbgen = import 'dbdbgen.libsonnet';
412410
/*{{ current_timestamp }}*/
413411
h_amount decimal(6,2),
414412
/*{{ 10.0 }}*/
415-
h_data varchar(24),
413+
h_data varchar(24)
416414
/*{{ rand.regex('[0-9a-zA-Z]{12,24}') }}*/
417-
%(fk)sforeign key (h_c_w_id, h_c_d_id, h_c_id) references %(prefix)scustomer (c_w_id, c_d_id, c_id),
418-
%(fk)sforeign key (h_w_id, h_d_id) references %(prefix)sdistrict (d_w_id, d_id),
419-
primary key (hist_id)
415+
%(fk)s,foreign key (h_c_w_id, h_c_d_id, h_c_id) references %(prefix)scustomer (c_w_id, c_d_id, c_id)
416+
%(fk)s,foreign key (h_w_id, h_d_id) references %(prefix)sdistrict (d_w_id, d_id)
420417
);
421418
||| % format,
422419
},

0 commit comments

Comments
 (0)