Allow non-btree speculative insertion indexes
[pgsql.git] / src / tools / ci / gcp_freebsd_repartition.sh
blob3adb8fb88eccfc79460fd492a15d94e64d583e48
1 #!/bin/sh
3 set -e
4 set -x
6 # fix backup partition table after resize
7 gpart recover da0
8 gpart show da0
10 # delete and re-add swap partition with expanded size
11 swapoff -a
12 gpart delete -i 3 da0
13 gpart add -t freebsd-swap -l swapfs -a 4096 da0
14 gpart show da0
15 swapon -a
17 # create a file system on a memory disk backed by swap, to minimize I/O
18 mdconfig -a -t swap -s20g -u md1
19 newfs -b 8192 -U /dev/md1
21 # migrate working directory
22 du -hs $CIRRUS_WORKING_DIR
23 mv $CIRRUS_WORKING_DIR $CIRRUS_WORKING_DIR.orig
24 mkdir $CIRRUS_WORKING_DIR
25 mount -o noatime /dev/md1 $CIRRUS_WORKING_DIR
26 cp -a $CIRRUS_WORKING_DIR.orig/ $CIRRUS_WORKING_DIR/