Someone with knowledge of Postgres, please jump in and commit a appropriate solution.