-- 48_maintenance_vacuum_analyze.sql
-- Banking Pattern Pack — PostgreSQL
-- Purpose: VACUUM/ANALYZE and REINDEX guidance.
-- 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;

-- Maintenance
VACUUM (ANALYZE) bank.transactions;
-- REINDEX TABLE bank.transactions;
