Postgres Function Vs Non Functional Requirements