Postgres Trigger Max Stack Problem Leetcode 150