In the previous chapter, we talked about the different types of exceptions available in PL/pgSQL and how to handle them with some examples. In this chapter, we will cover triggers in PostgreSQL. It will start with the introduction of triggers and how to create them using PL/pgSQL code with a simple example. We will then talk about the types of triggers with some use cases and real-world examples of where and when to use these triggers using PL/pgSQL ...
15. Triggers
Get Procedural Programming with PostgreSQL PL/pgSQL: Design Complex Database-Centric Applications with PL/pgSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.