If using pgsql, use the old function.