Triggers Best Practices
Triggers are sharp tools. Default to application logic unless the database must be the last line of defense.
Search across all documentation pages
Triggers are sharp tools. Default to application logic unless the database must be the last line of defense.
Yes, common and small; GENERATED columns alternative in PG 18 workflows.
Stack versions: This page was written for PostgreSQL 18.4 (stable 18, maintenance 17), pgvector 0.8+, PgBouncer 1.x, Patroni 3.x, and PostGIS 3.5+.
Reviewed by Chris St. John·Last updated Jul 18, 2026