title: How to keep functions and triggers updated after renaming tables in Postgres?
body: <p>What is the correct way of handling PostgreSQL triggers and functions so that their table references are automatically updated every time those tables are changed or updated?
  For example after changing the table's name or moving it into a different schema.</p>