#!/usr/bin/env sh mkdir -p tmp_stress cd tmp_stress rm -rf ./* git clone --depth 1 --single-branch --branch master https://github.com/postgrespro/tpcds-kit.git # used for data and schema git clone --depth 1 --single-branch --branch master https://github.com/cwida/tpcds-result-reproduction.git # used for queries only cd tpcds-kit/tools # This is a palliative care, since tpcds-kit is old and doesn't compile with modern ld. # Anyway, now it works and this is better than nothing. make LDFLAGS=-zmuldefs -s # Generate data ./dsdgen -FORCE -VERBOSE -SCALE 1 # Prepare data mkdir -p tables for i in `ls *.dat`; do echo "Preparing file" $i sed 's/|$//' $i > tables/$i done # Generate queries ./dsqgen -DIRECTORY ../query_templates \ -INPUT ../query_templates/templates.lst \ -VERBOSE Y \ -QUALIFY Y \ -SCALE 1 \ -DIALECT netezza