Postgres Trigger Max Stack Problem Leetcode