Oh god oh god what have I done. In order to get types of parameters three goats were sacrificed to pg_proc.