Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (10 sloc) 444 Bytes
# This resets a PostgreSQL RT database on OpenBSD anyway
# It was very helpful when I was testing my import.
/etc/rc.d/rt stop
psql -U _postgresql -d postgres -c 'DROP DATABASE rt4'
rt-setup-database --action init --dba-password='Yd"L4l{B;?%@5LqC/D' --dba _postgresql
if [ -e initialdata ]; then
rt-setup-database --action insert --dba-password='Yd"L4l{B;?%@5LqC/D' --dba _postgresql --datafile initialdata
/etc/rc.d/rt start
Something went wrong with that request. Please try again.