Changes to orders, customers, OR products all trigger updates
| ID | Customer | Region | Product | Qty | Total | Time |
|---|
Run these in a psql session:
docker compose exec -T db psql -U postgres -d pg_reactive_test
-- New order (row appears instantly) INSERT INTO orders (customer_id, product_id, qty, total) VALUES (1, 1, 2, 159.98); -- Change customer name -- the JOIN updates! UPDATE customers SET name = 'Alice Chen' WHERE name = 'Alice Johnson'; -- Change product name -- order feed reflects it UPDATE products SET name = 'Pro Keyboard' WHERE name = 'Mechanical Keyboard'; -- Delete an order DELETE FROM orders WHERE id = 1;