Severalnines Blog
The automation and management blog for open source databases

Severalnines blog

Filter by:
Clear
Apply (1) filters
1 blog post in 13 categories

PostgreSQL Triggers and Stored Function Basics

By building DML code into PostgreSQL, we can avoid duplicate implementation of data-related code in multiple separate applications that interface with the database. This ensures consistent execution of DML for data validation, data cleansing, or other functionality such as data auditing (i.e., logging changes) or maintaining a summary table independently of any calling application. In this blog, we’ll look at the basics of triggers and stored functions in PostgreSQL.