all: create-IVP load-data
	@echo
	@echo "The result from this next query should be 1000000"
	@echo
	time psql -p 5432 dgtestdb -c "select count(*) from IVP.bigtable1"

create-IVP:
	./create_db.sh

load-data:
	./load-data.sh

clean:
	@rm -f IVP.log
	@rm -f IVP.dgtestdb.log
	@rm -f copy.ctl
	@cd data-generator;make clean
	@-pkill /*postg*
	@rm -rf dgtestdb
	@rm -f cdbloader.log
