#!/bin/bash
#
# Run this to verify the results, after running unlogged-fsynctest.sh
# and killing and restarting the VM.

set -euxo pipefail 

PATH=/home/heikki/pgsql.master/bin:$PATH

USB_PATH='/mnt/otherdisk/heikki'



pg_ctl -D /home/heikki/fsynctest-data start -w

# This should return 10000000 rows, but because of the bug, it returns
# less.
psql postgres -c "SELECT COUNT(*) FROM unlogged_tbl"


