feat: st2334 cheatsheet

This commit is contained in:
2025-09-27 17:30:36 +08:00
parent 336ee081c6
commit 01d07eb1df
42 changed files with 21436 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# CS3223 Assignment 1
# Script to restore PostgreSQL installation
set -euo pipefail
source ./settings.sh
pg_ctl stop
\rm -rf ${PGDATA}
mkdir -p ${PGDATA}
make clock
# Create a database cluster
${INSTALL_DIR}/bin/initdb -D ${PGDATA}