-- 37_concurrent_index_large_tx.sql
-- Banking Pattern Pack — PostgreSQL
-- Purpose: CREATE INDEX CONCURRENTLY on big tables.
-- 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;

-- Create index concurrently to avoid write locks (cannot run inside a transaction block)
-- CREATE INDEX CONCURRENTLY IF NOT EXISTS tx_amount_idx ON bank.transactions (amount);
