only keep major in pgsql dir