Allow union sort and unions in postgres.