A click on "Duplicate" in the project list, a red notice "The project could not be duplicated", nothing else. The server log has the reason: a procedure reads a column that has not existed for five months. During those five months, the deploy ran green on four environments, production included. The convention check had nothing to complain about, and more than a thousand unit tests were green. None of these nets had ever called the procedure. PL/pgSQL resolves the column names in a body only at call time, and in an empty throwaway database nothing calls the procedure.
This article shows why there is no cheap test layer for the behavior of stored procedures in Postgres, and how to test Postgres stored procedures without installing a tool for it.…