Split pgsql