-- 47_backup_restore_notes.sql
-- Banking Pattern Pack — PostgreSQL
-- Purpose: Backup/restore commands and tips.
-- Context: Retail bank example with customers, accounts, transactions, cards, loans.
-- Date: 2025-08-18
-- Notes:
--   * Safe to read; run on a development DB.
--   * Requires: CREATE privileges; some files may need superuser for extensions.
--   * Search path set to 'bank' schema for clarity.
SET search_path = bank, public;

-- Backup/restore notes (shell commands; not SQL). Keep for learners:
-- pg_dump -Fc -f bank.dump yourdb
-- pg_restore -d yourdb -Fc bank.dump
-- psql yourdb < backup.sql
